| Requires the role: | Merchant |
| GET | /merchants/{merchantKey}/customers/{customerKey}/contracts | Get all contract details for a customer. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| MerchantKey | path | integer | Yes | The key of the merchant. |
| CustomerKey | path | integer | Yes | The customer key. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ContractKey | form | int | No | |
| MerchantKey | form | int | No | |
| CustomerKey | form | int | No | |
| Token | form | string | No | |
| BillAmount | form | decimal | No | |
| StartDate | form | DateTime? | No | |
| EndDate | form | DateTime? | No | |
| MerchantContractName | form | string | No | |
| MerchantContractId | form | string | No | |
| BillingInterval | form | int? | No | |
| BillingPeriod | form | string | No | |
| ActivationStatus | form | string | No | |
| MaxFailures | form | int? | No | |
| FailureInterval | form | int? | No | |
| FailurePeriod | form | string | No | |
| EmailMerchant | form | bool | No | |
| EmailCustomer | form | bool | No | |
| EmailMerchantFailure | form | bool | No | |
| EmailCustomerFailure | form | bool | No | |
| TaxAmount | form | decimal | No | |
| TotalAmount | form | decimal | No | |
| MaxAmount | form | decimal? | No | |
| CustomFields | form | List<ContractCustomField> | No | |
| AmountBillsToDate | form | decimal | No | |
| EmailCustomerReceiptOption | form | string | No | |
| NextBillDate | form | DateTime? | No | |
| NumberPayments | form | int? | No | |
| NumberBillsToDate | form | int? | No | |
| NumberFailures | form | int? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CustomValue | form | string | No | |
| CustomKey | form | int | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /merchants/{merchantKey}/customers/{customerKey}/contracts HTTP/1.1
Host: syntch.simpay.net
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ContractKey: 0,
MerchantKey: 0,
CustomerKey: 0,
Token: String,
BillAmount: 0,
StartDate: 0001-01-01,
EndDate: 0001-01-01,
MerchantContractName: String,
MerchantContractId: String,
BillingInterval: 0,
BillingPeriod: String,
ActivationStatus: String,
MaxFailures: 0,
FailureInterval: 0,
FailurePeriod: String,
EmailMerchant: False,
EmailCustomer: False,
EmailMerchantFailure: False,
EmailCustomerFailure: False,
TaxAmount: 0,
TotalAmount: 0,
MaxAmount: 0,
CustomFields:
[
{
CustomValue: String,
CustomKey: 0
}
],
AmountBillsToDate: 0,
EmailCustomerReceiptOption: String,
NextBillDate: 0001-01-01,
NumberPayments: 0,
NumberBillsToDate: 0,
NumberFailures: 0
}