Field | Input name | Value | Format | C/O | Description |
---|---|---|---|---|---|
Action code | pmtc_action | CANCEL | AN6 | C | Action being called (CANCEL). |
Message version | pmtc_version | 0005 | AN4 | C | Version of the interface content. |
Seller ID | pmtc_sellerid | AN15 | C | Seller ID given to the webstore by Svea Payments. Technical interface user id. | |
Payment ID | pmtc_id | AN20 | C | Unique identifying number given to the payment transaction by webstore. | |
Payment amount | pmtc_amount | AN17 | C | The original amount of the order. Same value as in send in Payment API ( | |
Payment currency | pmtc_currency | AN3 | C | The payment currency. Same value as in send in Payment API ( | |
Cancellation type | pmtc_canceltype | FULL_REFUND | AN40 | C | Tells, whether this is
|
Amount to be refunded | pmtc_cancelamount | e.g. 15,00 | AN17 | C/O | Amount to be refunded. Decimal number with comma and two decimal digits, for example: 15,00 Important! Used only in case of partial refunds! That is, this parameter should be ommited if cancellation type is full refund (FULL_REFUND). |
Buyer's refund bank account | pmtc_payeribanrefund | IBAN number | AN36 | O | This is only applicable if webstore has separately |
taken in use Escrow payment services with tools from Svea Payments which allow the webstore to make refunds independently. That is, Svea Payments does not contact buyer. Furthermore, the buyer has no |
Buyer’s Assistant at his or her use. In these cases it might be necessary for the webstore to |
provide an IBAN for the refund. The IBAN is only required in case on bank payments. That is, card payments, invoice payments and part payments do not require it. Important! Available only if separately agreed |
with Svea Payments. | |||||
Cancel description | pmtc_canceldescription | AN500 | O | Optional description for the refund that could be should to the buyer. | |
Cancel reason code | pmtc_cancelreason | AN5 | O | Optional reason for the refund that could be should to the buyer. Possible values are: Code / Description
| |
Response type | pmtc_resptype | XML | AN4 | C | Always XML |
Hash algorithm | pmtc_hashversion | AN10 | C | Name of the algorithm used to calculate the hash. For more details, see section Hash Generation. | |
Hash | pmtc_hash | AN128 | C | Hash calculated from predefined message fields and the webstore's secret key. The following fields are used to calculate the hash:
For more details, see section Hash Generation. | |
Secret key generation | pmtc_keygeneration | Default: 001 | N3 | C | Generation number of the secret key given to the seller by Svea Payments. |
Unique id for cancellation | pmtc_cancel_id | AN20 | O | It's recommended to use this field to give a unique idenfier for a refund. When given for one refund under the given order, there cannot be another refund for the same order with the same ID. This helps to prevent accidentally sending duplicate refunds. |
Field | Input name | Value | Format | C/O |
---|---|---|---|---|
The returned quantity of products of row N in the original order | pmtc_refund_quantity_of_original_rowN | e.g.. 1 | N8 | C/O |
Field | Input Name | Value | Format | C/O |
---|---|---|---|---|
Product or row name | pmtc_additional_row_nameN | e.g. "Product 1" | AN40 | C/O |
Row descrption | pmtc_additional_row_descN | AN1000 | C/O | |
Row quantity | pmtc_additional_row_quantityN | e.g.. 1 or 1,00 | AN8 | C/O |
Product article number | pmtc_additional_row_articlenrN | AN10 | ||
Row unit of quantity | pmtc_additional_row_unitN | e.g. "kg" or "pcs" | AN3 | |
Row gross unit price (VAT included) | pmtc_additional_row_price_grossN | e.g. 10,00 | AN17 | C/O |
Row net unit price (VAT excluded) | pmtc_additional_row_price_netN | e.g. 8,00 | AN17 | C/O |
Row VAT percentage | pmtc_additional_row_vatN | e.g. for VAT 24 %: 24,00 | AN5 | C/O |
Field | Input name | Value | Format | C/O | Description |
---|---|---|---|---|---|
Action code | pmtc_action | CANCEL | AN6 | P | Action called (CANCEL). |
Message version | pmtc_version | 0005 | AN4 | P | Version of the interface content. |
Seller ID | pmtc_sellerid | AN15 | P | Seller ID given to the webstore by Svea Payments. Technical interface user id. | |
Payment ID | pmtc_id | AN20 | P | Unique identifying number given to the payment transaction by webstore. | |
Response code | pmtc_returncode | AN2 | P | Indicates success or failure. See below for the values and explanations of all the codes. | |
Response text | pmtc_returntext | AN100 | P | Brief description of the failure reason. Empty in case of success. | |
Hash | pmtc_hash | AN128 | P | Hash calculated from predefined message fields and the webstore's secret key. Uses the same version, key generation etc values that were in the request. The following fields are used to calculate the hash:
For more details, see section Hash Calculation. | |
Details of all the errors | errors | N/A | V | XML structure listing details of all the errors in the input message. |
Response code values
Response code | Short description | Description |
---|---|---|
00 | OK | Cancel received successfully |
20 | Not found | Payment not found |
30 | Already settled | Payment already compensated and cannot be cancelled |
31 | Webstore and buyer cancellations mismatch | Cancel parameters from seller and payer do not match |
90 | Errors in input data | Errors in input data, specified in element |
91 | Duplicate detected | Payment cancellation failed, as this request was a duplicate based on the given unique identifier ( |
99 | Failed | Payment cancellation failed, reason specified in |