Restaurant - Invoice
InvoiceController_generateCheckoutUrl
POST
/restaurant/invoices/{id}/checkout
const url = 'https://api.inspow.tech/api/v1/restaurant/invoices/example/checkout';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.inspow.tech/api/v1/restaurant/invoices/example/checkoutParameters
Sección titulada « Parameters »Path Parameters
Sección titulada «Path Parameters » id
required
string
Responses
Sección titulada « Responses »Generate Wompi checkout URL for invoice payment
Media type application/json
object
checkoutUrl
string
reference
string
amountInCents
number
expirationTime
string
Example generated
{ "checkoutUrl": "example", "reference": "example", "amountInCents": 1, "expirationTime": "example"}