This documentation applies to the Legacy platform. If your dashboard matches the screenshot shown here, please refer to the new platform documentation.
| Field Name | Description | Required? | |
|---|---|---|---|
| Create Fixed-Price Payment | |||
| cmd | create_transaction | Yes | |
| amount | The amount of the payment in the original currency (currency1 below). | Yes | |
| currency1 | The original currency of the payment. | Yes | |
| currency2 | The currency the buyer will be sending. For example if your products are priced in USD but you are receiving BTC, you would use currency1=USD and currency2=BTC. currency1 and currency2 can be set to the same thing if you don't need currency conversion. | Yes | |
| buyer_email | Set the buyer's email address. This will let us send them a notice if they underpay or need a refund. We will not add them to our mailing list or spam them or anything like that. | Yes | |
| address | Optionally set the address to send the funds to (if not set will use the settings you have set on the 'Coins Acceptance Settings' page). Remember: this must be an address in currency2's network. | No | |
| buyer_name | Optionally set the buyer's name for your reference. | No | |
| item_name | Item name for your reference, will be on the payment information page and in the IPNs for the payment. | No | |
| item_number | Item number for your reference, will be on the payment information page and in the IPNs for the payment. | No | |
| invoice | Another field for your use, will be on the payment information page and in the IPNs for the payment. | No | |
| custom | Another field for your use, will be on the payment information page and in the IPNs for the payment. | No | |
| ipn_url | URL for your IPN callbacks. If not set it will use the IPN URL in your Edit Settings page if you have one set. | No | |
| success_url | Sets a URL to go to if the buyer does complete payment. (Only if you use the returned 'checkout_url', no effect/need if designing your own checkout page.) | No | |
| cancel_url | Sets a URL to go to if the buyer does not complete payment. (Only if you use the returned 'checkout_url', no effect/need if designing your own checkout page.) | No | |
{
"error":"ok",
"result":{
"amount":"1.00000000",
"address":"ZZZ",
"dest_tag":"YYY",
"txn_id":"XXX",
"confirms_needed":"10",
"timeout":9000,
"checkout_url":"https:\/\/www.coinpayments.net\/index.php?cmd=checkout&id=XXX&key=ZZZ"
"status_url":"https:\/\/www.coinpayments.net\/index.php?cmd=status&id=XXX&key=ZZZ"
"qrcode_url":"https:\/\/www.coinpayments.net\/qrgen.php?id=XXX&key=ZZZ"
}
}
The result wil have the following fields: