Skip to content

    POST /orders/{orderId}

    Refund, Cancel, Capture

    Method: POST
    URI:

    • /orders/{orderId}/transactions/{transactionId}/refund
    • /orders/{orderId}/transactions/{transactionId}/cancel
    • /orders/{orderId}/transactions/{transactionId}/capture

    Parent Error Code:

    14000 "Error while creating transaction."

    The HTTP Status is always: 400 Bad Request

    FieldTypeExpectationHTTP StatusCode
    orderIdStringA valid order identifier40012101
    transactionIdStringA valid transaction identifier40014101

    Parent Error Code:
    14000 "Error while creating transaction."

    The HTTP Status is always: 400 Bad Request

    FieldTypeRequiredValue rangeLengthExpectationCode
    initialAmountNumberYesNumber greater than min. authorizing amount in cents and less then 9999999Mandatory number greater than min. authorizing amount in cents and less then 999999912200, 12201,14200, 14201
    currencyStringYesDependent on payment method and merchant configuration3Currency code in the range of ISO_421712202, 12203
    descriptionNo{1 - 128}String between 1 and 128 characters12217
    basketArray[item]RatepayArray of type item12219, 12220
    item.nameStringYes, when basket is present{1 - 128}Mandatory string between 1 and 128 characters12221, 12222
    item.articleNumberStringYes, when basket is present{1 - 255}Mandatory string between 1 and 255 characters12223, 12224
    item.totalPriceNumberYes, when basket is presentNumber between min. item total price amount in cents and 9999999Mandatory number between min. item total price amount in cents and 999999912225, 12226
    item.totalPriceWithTaxNumberYes, when basket is presentlong; Greater then item.totalPriceMandatory number greater than item total price12227, 12228
    item.taxNumberYes, when basket is presentNumber between 0 and 100Mandatory number between 0 and 10012229, 12230
    item.unitPriceNumberYes, when basket is presentNumber between min. item unit price amount in cents and 9999999Mandatory number between min. item unit price amount in cents and 999999912231, 12232
    item.unitPriceWithTaxNumberYes, when basket is presentNumber greater than item.unitPriceMandatory number greater than item unit price in cents.12233, 12234
    item.quantityNumberYes, when basket is presentNumber greater than 1Mandatory number greater than 112235, 12236

    Was this helpful?

    What was your feeling about it?