Event: custom-rate.created
When is this event triggered?
This event is created whenever a new custom rate has been created by Afterpay. Partners can review the details of the custom rate and use the Approve Custom Rate endpoint to approve.
Payload
The payload of this webhook request is an object.
customRateId
The unique ID for the custom rate 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
The de facto approval field that determines whether the rate request by Afterpay is approved or rejected by the partner.
Allowed values:
customRateType
Defines whether the custom rate applies to only one seller or applies to multiple sellers under the same platform or brand.
Allowed values:
merchantId
Afterpay merchant id (MID); this will only be available for existing sellers; for new sellers please use the reference field.
reference
Seller or brand reference to which the custom rate is being applied; this defines the unique seller or the unique platform or brand and iswill be requested from the partner manually before the custom rate request is created.
rateDetails
Response
200
any
Return a 200 status to indicate that the data was received successfully.