| Requires the role: | Merchant |
| GET | /merchants/{merchantKey}/customers/{customerKey}/contracts/{contractKeys} | Get details for one or more contracts. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| MerchantKey | path | integer | Yes | The key of the merchant. |
| CustomerKey | path | integer | Yes | The customer key. |
| ContractKeys | path | integer | Yes | A comma separated list of contract keys. Limit 10. |
| 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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /merchants/{merchantKey}/customers/{customerKey}/contracts/{contractKeys} HTTP/1.1
Host: syntch.simpay.net
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ContractKey":0,"MerchantKey":0,"CustomerKey":0,"Token":"String","BillAmount":0,"StartDate":"0001-01-01T00:00:00.0000000","EndDate":"0001-01-01T00:00:00.0000000","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-01T00:00:00.0000000","NumberPayments":0,"NumberBillsToDate":0,"NumberFailures":0}