Field | Input name | Value | Format | C/O | Description |
---|---|---|---|---|---|
Action code | pmtc_action | REFUND_AFTER_SETTLEMENT | AN23 | C | Action being called (REFUND_AFTER_SETTLEMENT) |
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 | N17 | 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 | REFUND_AFTER_SETTLEMENT | AN40 | C | REFUND_AFTER_SETTLEMENT |
Amount to be refunded | pmtc_cancelamount | e.g. 15,00 | N17 | C | Amount to be refunded. Decimal number with comma and two decimal digits, for example: 15,00 |
Buyer's refund bank account | pmtc_payeribanrefund | IBAN number of the payer | AN36 | C | The IBAN is only required in case on bank payments. That is, card payments, invoice payments and part payments do not require it. If can be given though even if not required. |
Cancel description | pmtc_canceldescription | AN500 | C | 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 Calculation. | |
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 Calculation. | |
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 refund | 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 | |
---|---|---|---|---|---|
Action code | pmtc_action | REFUND_AFTER_SETTLEMENT | AN6 | C | Action called (REFUND_AFTER_SETTLEMENT). |
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. | |
Response code | pmtc_returncode | AN2 | C | Indicates success or failure. See below for the values and explanations of all the codes. | |
Response text | pmtc_returntext | AN100 | C | Brief description of the failure reason. Empty in case of success. | |
Hash | pmtc_hash | AN128 | C |
For more details, see section Hash Calculation. | |
Reference | pmtc_pay_with_reference | a Finnish reference number | N20 | C | a Finnish reference number that should be used when paying money to Svea Payments after initiating this refund |
Recipient name | pmtc_pay_with_recipientname | Svea Payments Oy | AN50 | C | Svea Payments Oy - The name to be used on the money transfer as the recipient. |
Amount to refund | pmtc_pay_with_amount | i.e. 2,00 | N17 | C | The amount the merchant is willing to refund to payer, i.e. 2,00 |
Maksuturva's IBAN | pmtc_pay_with_iban | The IBAN of the bank account to pay the money to. | AN36 | C | The IBAN of the bank account that the merchant should use to pay the money to. |
Details of all the errors | errors | N/A | O |
|
Response code | Short Description | Description |
---|---|---|
00 | OK | Cancel received successfully |
20 | Not found | Payment not found |
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 |