Get payment details by MerchantOrderId

Query a transaction by providing the MerchantOrderId.

EnvironmentMethodEndpoint
Sandboxhttps://apiquerysandbox.cieloecommerce.cielo.com.br/1/sales?merchantOrderId={merchantOrderId}
Productionhttps://apiquery.cieloecommerce.cielo.com.br/1/sales?merchantOrderId={merchantOrderId}

Response to query by MerchantOrderId

The table below presents the main parameters that can be returned by the API when querying a transaction by MerchantOrderId.

PropertyDescriptionTypeLength
ReasonCodeCode indicating success or error in the requested operation flow.string32
ReasonMessageMessage indicating success or error in the requested operation flow.string512
PaymentIdPayment identification number, required for operations such as query, capture, and cancellation.string36
ReceivedDateDate when the transaction was received.string19
ℹ️

Only transactions within the last three months can be queried via API.

Path Params
string
required

Order identification number. Warning: Allowed characters are a-z, A-Z, 0-9. Special characters and blank spaces are not allowed. Size: 36.

Headers
string
required
Defaults to 8937bd5b-9796-494d-9fe5-f76b3e4da633

Store identifier in API E-commerce Cielo. Size: 36. This documentation provides a default MerchantId to allow testing in the sandbox, but you can also provide the enabled MerchantId during the deployment process.

string
required
Defaults to XKGHUBSBKIRXKAVPSKWLVXYCLVJUGTNZLIHPUSYV

Public Key for Double Authentication in API E-commerce Cielo. Size: 40. This documentation provides a default MerchantKey to allow testing in the sandbox, but you can also provide the enabled MerchantKey during the deployment process.

string

Request Identifier, used when the merchant uses different servers for each GET/POST/PUT

Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json