XendBridge
  • Get Started
  • 🛠️API Method Calls
    • Third Party Order Operations
      • Rate
      • Buy Order
      • Sell Order
      • Swap Order
      • Pending Order
      • Pay For Order
      • Cancel Order
    • LP Simulation
      • Pay For Order (Buy Order)
      • Pay For Order (Sell Order)
    • Dispute
      • Raise Third Party Dispute
      • Get All Disputes
      • XendBridge Chat SDK
    • Payment Inquiry
    • WebHooks
      • Order Payment Confirmation
      • Order Matched Notification
      • Order Canceled Notification
      • Checksum Verification
  • 📄XENDBRIDGE PORTAL
    • Checkout URL
      • Buy Order
      • Sell Order
      • Swap Order
      • Rate
      • Rate Bounds
      • Initiate Order Created With Deferred Payment Method
      • Supported Currencies
      • Payment Methods
    • Inline Html Snippet
    • DeFi Checkout
  • 📦XENDBRIDGE SDKS
    • XendBridge NodeJs SDK
    • XendBridge .NET SDK
      • Rate
      • Buy Order
      • Sell Order
      • Swap Order
      • Pending Order
      • Pay For Order Confirmation
      • Cancel Order
      • Raise A Dispute
  • Errors
  • 🔖REFERENCE
    • API Reference
Powered by GitBook
On this page

Was this helpful?

  1. API Method Calls
  2. Third Party Order Operations

Pay For Order

Confirm Order Payment

This POST endpoint confirms a buy or sell order for a third-party customer indicating a successful transfer of funds. Only the secretkey is passed in the header while the request to be made would contain only an emailAddress and orderReference.

If successful returns a "Payment made successfully" 200message.

Pay for order

POST https://canary.xendbridge.com/api/PeerToPeerOrder/ThirdParty/Order/Confirm

Headers

Name
Type
Description

secretKey*

String

{secretKey}

Request Body

Name
Type
Description

emailAddress*

String

johndoe@gmail.com

orderReference*

String

XB_0877e5692ee946f491bafab275d3d522

transactionHash*

String

0xcfa4a293e6fd903329e9c035f4f17dafbd0dbd9b76b613be5cd2ba7b7a4baaa7

{
    "data": true,
    "status": "OK",
    "message": "Payment Updated Successfully"
}
Parameters
Type
Definitions

emailAddress

string

Required The email address of the third party client.

orderReference

string

Required The order reference of an order made.

transactionHash

string

Required The unique hash of a transaction on the blockchain network

Parameters
Type
Definitions

data

bool

This can either be true or false.

status

string

This returns a status message of the request.

message

string

This returns either Payment updated successfully if success, or Failed to update payment status. Please try again later if failed.

PreviousPending OrderNextCancel Order

Last updated 2 years ago

Was this helpful?

🛠️