Event: rates-contract.created

When is this event triggered?

This event is created whenever a new rates contract has been created by Afterpay. Partners can review the details of the rates contract and use the Approve Contract endpoint to approve.

Payload

The payload of this webhook request is an object.
contractIdstringRequired
The unique ID for the contract between Afterpay and the partner.
afterpayUserDetailsobjectRequired
The info of the Afterpay user who is creating Afterpay's contract request. This info can be made generic or anonymized.
statusstringRequired

Contract status: approved, rejected, or pending

countryCodestringRequired

Country code in the two-letter ISO 3166-1 alpha-2 standard format, defining the consumer market for which the contact applies.

buyRatesobjectRequired

Response

200
any
Return a 200 status to indicate that the data was received successfully.