latestOpenAPI 3.0.02026-08-0832102256.6 KB

6097bc689e41

Contracts

Update contract for a Merchant's Customer

Called by the Independent Software Vendor. Allows updating, enabling and disabling of contracts.

patch/merchants/{merchant_id}/customers/{customer_id}/contracts

Path parameters

merchant_idstring required
Example:string

The merchant identifier that will be used to connect to the gateway. Size range - 1..16

customer_idstring required
Example:string

Customer identifier associated to the transaction

Headers

Authorizationstring api_id:api_token required

Needs to include Basic word before Base64 encoded api_id:api_token. The api_id is the identifier of the organization created on TAP; size range - up to 36 characters. The api_token is the unique token previously generated by TAP and provided securely to the organization; size range - 32. Example: Basic ODA5BVgrNdZkZmbiFlJlTThkYTA2eG00MzA5dHh1bWZnZgfdZDE=

Acceptstring required
Example:application/vnd.paymentfusion.v3.0.0+json

Specifies the requested API version. If this field is not specified or has an invalid format, the API will return an error. If the specified version does not exist, a 404 page will be displayed. Accepted values - application/vnd.paymentfusion.v3.0.0+json

Content-Typestring required
Example:application/x-www-form-urlencoded

The Content-Type entity header is used to indicate the media type of the resource.

Response

Success

vstring

The API version that was used to handle the request.

Example response

{
  "contracts": [
    {
      "customer_id": "string",
      "bill_amount": "string",
      "status": "string",
      "start_date": "string",
      "end_date": "string",
      "schedule": "string",
      "num_left": "string"
    }
  ],
  "v": "string"
}