Create new Invoice
Creates a new Invoice for the merchant.
Request
- Base URLhttps://confirmo.net/api
- URLhttps://confirmo.net/api/v3/invoices
- AuthHTTP bearer
Headers
The name of the payment gateway integration solution (a higher-level payment gateway or plugin which integrates this payment gateway). This header is not meant to be used by direct merchant integrations and replaces the legacy 'X-Payment-Module' header. Only basic letters, numbers, underscore('_'), dash ('-'), dot ('.') and space (' ') are allowed.
The version of the payment gateway integration solution (a higher-level payment gateway or plugin which integrates this payment gateway). This header is not meant to be used by direct merchant integrations. Only basic letters, numbers, dash ('-'), dot ('.') and space (' ') are allowed.
Request body
Example request
{
"customerEmail": "customerEmail@email.com",
"customerProfile": {
"city": "Springfield",
"country": "US",
"postalCode": "90210",
"profileId": "profile-12345",
"streetAddress": "123 Main Street",
"lei": "5493001KJTIIGC8Y1R12",
"registeredName": "ACME Inc.",
"registrationNumber": "12345678"
},
"invoice": {
"currencyFrom": "EUR",
"paymentMethodId": "BITCOIN-BLOCKCHAIN-MAINNET-BTC-CURRENCY"
},
"notifyEmail": "orderReceived@yourEShop.com",
"notifyUrl": "https://yourEShop.com/orderReceived",
"product": {
"description": "Small silver computer",
"name": "Computer"
},
"reference": "anything",
"returnUrl": "https://yourEShop.com/orderReceived",
"settlement": {
"currency": "EUR"
}
}Response
Invoice successfully created
Example response
{
"activeSince": 1506080071,
"address": "3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy",
"buttonInvoiceId": "paby8ngx1eox",
"closedAt": 1506080071,
"confirmingSince": 1506080071,
"createdAt": 1506080071,
"cryptoTransactions": [
{
"confirmations": 6,
"createdAt": 1594376981,
"sourceAddresses": [
"1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
"3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy"
],
"txid": "4f13bc54e8df1620f98934078caaa59c7b480f3ed64e9838f5af519f311bb0b1",
"updatedAt": 1594376981
}
],
"cryptoUri": "litecoin:mnLU9vBK7L1WY6JNnGYY...Jdjwfnti4Cu9xz?amount=1.00000000",
"customerAmount": {
"amount": 1000,
"currency": "EUR"
},
"customerEmail": "customerEmail@email.com",
"emailInvoiceId": "emi4og3r6g3w",
"errorSince": 1506080071,
"expiredSince": 1506080071,
"flags": {
"overpaymentResolvable": true
},
"id": "invl8em3zdkr",
"layer2Attributes": {
"protocolName": "LIGHTNING"
},
"merchantAmount": {
"amount": 1000,
"currency": "EUR"
},
"notifyEmail": "orderReceived@yourEShop.com",
"notifyUrl": "https://yourEShop.com/orderReceived",
"paid": {
"currency": "LTC"
},
"paidSince": 1506079178,
"paymentMethodId": "BITCOIN-BLOCKCHAIN-MAINNET-BTC-CURRENCY",
"pendingVerificationSince": 1506080071,
"preparedSince": 1506080071,
"product": {
"description": "Small silver computer",
"name": "Computer"
},
"rate": {
"currencyFrom": "EUR",
"currencyTo": "LTC"
},
"reference": "string {'customer_mail': 'customer@example.com'}",
"refundLink": "https://pay.confirmo.com/public/permit-refund/aW52MDJleTI0MWdrNGE5MmFjNGRkYTE1YjQ5ZDI3MzA4NzBhYWEzYjc5YzE=?refundEmail=test@bitcoin.com&merchantId=dfjeivkdienmv",
"refunds": [
{
"address": "3Bp6GX52uY574Uq7k6opCx1zHd5hVhAXHq",
"createdAt": 1594376981,
"id": "refz0gr3qgx9",
"notifyEmail": "test@test.com",
"refundedAt": 1594376981,
"substatus": "SCREENING_IN_PROGRESS",
"txid": "4f13bc54e8df1620f98934078caaa59c7b480f3ed64e9838f5af519f311bb0b1",
"updatedAt": 1594376981
}
],
"requiredConfirmations": 2,
"requiredConfirmationsToRefund": 6,
"resolvedByEmail": "user@mail.ex",
"resolvedManually": true,
"returnUrl": "https://yourEShop.com/orderReceived",
"settlement": {
"createdAt": 1561363200,
"currency": "EUR",
"id": "setv9e1qxgz8"
},
"settlementAmount": {
"amount": 1000,
"currency": "EUR"
},
"takeInfo": {
"customerCurrency": "LTC",
"expiration": 1552987955,
"expirationDuration": 120,
"offeredSettlementAmount": 3198,
"settlementCurrency": "EUR",
"taken": true,
"takenAt": 1552987719
},
"timeoutTime": 1506080071,
"unhandledExceptions": true,
"url": "https://pay.confirmo.com/public/invoice/NOLvQIt2na6kfXBb?m=dfjeivkdienmv",
"version": 42
}Changes
No recorded changes to this operation across all 1 revision of this API.