POST /v1/payments/{paymentId}/charges

Used to charge a reserved payment.

Response Class (Status 201)

{
  "chargeId": "string",
  "invoice": {
    "invoiceNumber": "string"
  }
}

Parameters

Parameter Value Description Parameter Type Data Type
paymentId (required)   path string
charge
{
  "amount": 0,
  "orderItems": [
    {
      "reference": "string",
      "name": "string",
      "quantity": 0,
      "unit": "string",
      "unitPrice": 0,
      "taxRate": 0,
      "taxAmount": 0,
      "grossTotalAmount": 0,
      "netTotalAmount": 0
    }
  ]
}
  body  
Authorization (required) Private api key header string

 

Response

HTTP Status Code Reason Response model
400 Bad request
{
  "errors": {}
}
401 Unauthorized  
404 Payment not found  
500 Unexpected error
{
  "message": "string",
  "code": "string",
  "source": "string"
}
Do you have question or need help?
Follow us
DIBS Payment Services
Stockholm +46 (0)8-527 525 00
Göteborg +46 031-600 800
København +45 7020 3077
Oslo +47 21 55 44 00