Checkout Webhooks

Checkout Status Updated

Body (payload) of the POST request:

{
    type: "CHECKOUT_STATUS_UPDATED";
    data: {
        checkoutId: string;
        status: CheckoutStatus;
    };
}

Example

{
    type: "CHECKOUT_STATUS_UPDATED,
    data: {
        checkoutId: "fbfdc3d0-b225-47cf-8882-27cf4d734073",
        status: "DONE"
    }
}

CheckoutStatus

CREATED

indicates that a checkout intent was submitted to Tweed and was created

PERFORM_CHECKOUT_SUBMITTED

indicates that the end user submitted the checkout successfuly

TRANSACTION_BROADCAST

indicates that the transaction was broadcasted to the blockchain

DONE

indicates that the checkout process was successful and the user received the token to it's wallet

FAILED

indicates that the checkout process failed

FAILED_AFTER_TX_COMPLETED

indicates that the checkout process failed after the transaction was already completed on chain

Last updated