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.
contractId
The unique ID for the contract between Afterpay and the partner.
afterpayUserDetails
The info of the Afterpay user who is creating Afterpay's contract request. This info can be made generic or anonymized.
status
Contract status: approved, rejected, or pending
countryCode
Country code in the two-letter ISO 3166-1 alpha-2 standard format, defining the consumer market for which the contact applies.
buyRates
Response
200
any
Return a 200 status to indicate that the data was received successfully.