Skip to main content

Get Conversion Detail

Query the status and details of a conversion order. The API serves two purposes:

  1. Timeout recovery — when Create Conversion times out, query the result without retrying
  2. Reconciliation — query orders within a day for reconciliation

Dual Lookup Support

  • By conversion_id — if Merchant received conversion_id in Create Conversion response
  • By origin_request_id — if Merchant did not receive Create Conversion response (timeout): use the request_id of the Create Conversion order

For timeout when conversion_id not received, query by origin_request_id. If receiving code 430 (not found), the original order was not yet recorded on Baokim's side, Merchant is safe to retry Create Conversion with same request_id.

Workflow

Endpoint

  • URL: /api/v1/fx/conversion-detail
  • Method: POST

Request

ParameterData TypeRequiredDescription
request_idstring(50)YesUnique code identifying this query request. See section 3 Introduction
request_timestring(19)YesSee section 3 Introduction
merchant_codestring(20)YesSee section 3 Introduction
conversion_idstring(50)ConditionalConversion order code to query. Required if not providing origin_request_id.
origin_request_idstring(50)Conditionalrequest_id of the Create Conversion order to query. Required if not providing conversion_id. If both provided, conversion_id takes priority.

Example Request — by conversion_id

{
"request_id": "MERCHANT1234BK202606050003",
"request_time": "2026-06-05 10:16:10",
"merchant_code": "MERCHANT1234",
"conversion_id": "FXC202606051015450001"
}

Example Request — by origin_request_id (timeout recovery)

{
"request_id": "MERCHANT1234BK202606050003",
"request_time": "2026-06-05 10:16:10",
"merchant_code": "MERCHANT1234",
"origin_request_id": "MERCHANT1234BK202606050002"
}

Response

ParameterData TypeRequiredDescription
response_codeint(4)YesResult code
response_messagestring(200)YesDescription of the result code
merchant_codestring(20)YesMerchant code
dataObjectYesConversion order details (structure similar to Create Conversion response)

data Structure

The data structure is the same as Create Conversion response:

ParameterData TypeDescription
conversion_idstring(50)Conversion order code
origin_request_idstring(50)request_id of the original order
statusstring(20)Order status: PROCESSING, SUCCESS, FAILED
quote_idstring(50)Quote code executed
trade_typestring(4)Transaction type (SELL/BUY)
currency_pairstring(10)Normalized currency pair
ratedecimal(18,4)Exchange rate executed
from_currencystring(3)Source currency
from_amountdecimal(18,2)Source amount deducted
to_currencystring(3)Destination currency
to_amountdecimal(18,2)Destination amount credited
created_atstring(19)Order creation time
completed_atstring(19)Completion time. Null when status = PROCESSING.

Example Response

{
"response_code": 200,
"response_message": "Success",
"merchant_code": "MERCHANT1234",
"data": {
"conversion_id": "FXC202606051015450001",
"origin_request_id": "MERCHANT1234BK202606050002",
"status": "SUCCESS",
"quote_id": "FXQ0605A7K2M9XD41",
"trade_type": "SELL",
"currency_pair": "USD/VND",
"rate": 26450.0000,
"from_currency": "USD",
"from_amount": 10000.00,
"to_currency": "VND",
"to_amount": 264500000,
"created_at": "2026-06-05 10:15:45",
"completed_at": "2026-06-05 10:15:46"
}
}

Error Codes

Response CodeResponse MessageDescription
200Success
101System errorUnexpected error on Baokim's side
110Invalid merchant codemerchant_code is undefined
120Invalid SignatureSignature header is invalid
422Validation errorBoth conversion_id and origin_request_id missing, or other field invalid
429Too many requestsExceeded rate limit for Merchant
430Conversion order not foundNot found with provided conversion_id or origin_request_id. If querying by origin_request_id: original order not yet recorded on Baokim, Merchant safe to retry Create Conversion.