Customer
string · date-time · requiredstring · requiredinteger · int32 · requiredstring · date · requiredstring · uuid · requiredinteger · int32 · required
Properties for Variant 1:string · uuid
string · uuid · requiredstring · date-time · requiredinteger · int32 · requiredstring · date · requiredstring · uuid · requiredinteger · int32 · required
string · uuid · required
Properties for Variant 1:object
customer-rules
Operations addressed under /customer-rules — 4 operations.
create-customer-rule
POST
https://dg-sandbox.dgpays.com/customer-service
/customer-rules
Add Authorization: Bearer <token> yourself — generated samples and Try it do not attach a credential.
create-customer-rule › Request Body
beginDatecodecustomerTypeendDateformulaDefinitionIdruleTypecreate-customer-rule › Responses
Success. The schema is an anyOf over three envelopes: the record, a bare array of it, and a page {total, data[]} carrying the same record.
anyOf
At least one variant must match. Multiple variants may match simultaneously.
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object | |
| type = array | |
| type = object · requires: data |
idupdate-customer-rule
PUT
https://dg-sandbox.dgpays.com/customer-service
/customer-rules/{id}
Add Authorization: Bearer <token> yourself — generated samples and Try it do not attach a credential.
path Parameters
idupdate-customer-rule › Request Body
beginDatecustomerTypeendDateformulaDefinitionIdruleTypeupdate-customer-rule › Responses
Success. The catalog declares no response fields for this operation. The body is UNKNOWN CONTENT.
No data returned
execute-customer-rule-formula
POST
https://dg-sandbox.dgpays.com/customer-service
/customer-rules/{id}/execute-formula
Add Authorization: Bearer <token> yourself — generated samples and Try it do not attach a credential.
path Parameters
idexecute-customer-rule-formula › Responses
Success. The schema is an anyOf over three envelopes: the record, a bare array of it, and a page {total, data[]} carrying the same record.
anyOf
At least one variant must match. Multiple variants may match simultaneously.
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object | |
| type = array | |
| type = object · requires: data |
formulaResult