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.
customRateIdstringRequired
The unique ID for the custom rate 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.
statusenumRequired
The de facto approval field that determines whether the rate request by Afterpay is approved or rejected by the partner.
Allowed values:
customRateTypeenumRequired
Defines whether the custom rate applies to only one seller or applies to multiple sellers under the same platform or brand.
Allowed values:
merchantIdstringRequired

Afterpay merchant id (MID); this will only be available for existing sellers; for new sellers please use the reference field.

referencestringRequired

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.

rateDetailsobjectRequired

Response

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