Metadata
Attach your own business identifiers to orders, refunds, and payment links with metadata.
Key points
- Use metadata for references you need in reporting or reconciliation, not for sensitive customer data.
- Order metadata can be used for queries and may be updated after creation under the API's limits.
- Metadata does not replace out_trade_no or out_refund_no as an idempotency key.
Example
text
POST /v1/orders/{trade_no}
POST /v1/refunds/{refund_no}
POST /v1/payment_links/{link_id}