Properties
| Property | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The MoonPay ID of the transaction |
createdAt | string (date-time) | Yes | ISO 8601 timestamp of when the transaction was created |
updatedAt | string (date-time) | Yes | ISO 8601 timestamp of when the transaction was last updated |
status | string | Yes | The current status: completed, failed, or pending |
source | object | Yes | The source amount and asset (fiat currency) |
destination | object | Yes | The destination amount and asset (cryptocurrency) |
fees | Fees | Yes | Fee breakdown for the transaction |
wallet | Wallet | Yes | The wallet where crypto was delivered |
customer | object | Yes | The customer who made the transaction |
paymentMethod | object | No | The payment method used |
stages | array | No | The stages of the transaction lifecycle |
Source / Destination
Bothsource and destination have the same structure:
| Property | Type | Required | Description |
|---|---|---|---|
amount | string | Yes | The amount as a string to preserve precision |
asset | Asset | Yes | The currency or token |
Customer
| Property | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The MoonPay ID of the customer |
Transaction Status
| Value | Description |
|---|---|
pending | Transaction is in progress |
completed | Transaction completed successfully |
failed | Transaction failed |