Skip to main content

Documentation

Order Message Sequences

Message sequences for creating an order of goods and paying for the order.

A client can create an order of goods and trigger the collection process.

The client asks Rapyd to create an order. Rapyd confirms that the order was created.

  1. The client sends a Create an Order request to Rapyd.

  2. Rapyd sends a response to the client.

  3. Rapyd sends an Order Created webhook to the client. The status of the order is set to created.

The client asks Rapyd to collect a card payment for an order. Rapyd processes the payment. Rapyd updates the client when the payment is complete.

  1. The client sends a Pay an Order request to Rapyd.

  2. Rapyd sends a response to the client. A payment is created and the status of the payment is set to ACT.

  3. Rapyd sends Payment Succeeded Webhook to the client. The status of the payment is set to ACT.

  4. Rapyd sends an Order Payment Succeeded webhook to the client. The status of the payment is set to ACT and the status of the order is set to pending.

  5. Rapyd requests a payment from the card network.

  6. The card network approves the payment and transfers the funds to Rapyd.

  7. Rapyd credits the wallet and sends Payment Completed Webhook to the client. The payment status is set to CLO.

  8. Rapyd sends Order Updated Webhook to the client. The status of the order is set to paid.