Apart from capturing the authorized funds, there are still a couple of options
available to you after a payment. Authorizations can cancelled, captures can
be both partially and fully reversed. Read more about the options here.
Options After Posting A Payment
When you detect that the payer reach your completeUrl , you need to do a GET
request on the payment resource, containing the paymentID generated in the
first step, to receive the state of the transaction. You will also be able to
see the available operations after posting a payment.
Abort: It is possible to abort the process if the payment has no successful
transactions. See the Abort description here.
If the payment shown above is done as a two phase (Authorization), you will
need to implement the Capture and Cancel requests.
If CallbackURL is set: Whenever changes to the payment occur a Callback
request will be posted to the callbackUrl, which was generated
when the payment was created.
Cancellations
Cancel can only be done on a authorized transaction. If you do cancel after
doing a part-capture you will cancel the difference between the capture amount
and the authorization amount.
A textual description of the reason for the cancellation.
check
payeeReference
string
A unique reference from the merchant system. Set per operation to ensure an exactly-once delivery of a transactional operation. Length and content validation depends on whether the transaction.number or the payeeReference is sent to the acquirer. If Swedbank Pay handles thesettlement, the transaction.number is sent and the payeeReference must be in the format of A-Za-z0-9 and string(50). If you handle the settlement, Swedbank Pay will send the payeeReference and it will be limited to the format of string(12). All characters must be digits.
Cancel Response
The cancel resource contains information about a cancellation transaction
made against a payment.
The relative URL of the payment this cancellation transaction belongs to.
cancellation
object
The cancellation resource contains information about the cancellation transaction made against a card payment.
id
string
The relative URL of the created cancellation transaction.
transaction
object
The object representation of the generic transaction resource, containing information about the current transaction.
id
string
The relative URL of the current transaction resource.
created
string
The ISO-8601 date and time of when the transaction was created.
updated
string
The ISO-8601 date and time of when the transaction was updated.
type
string
Indicates the transaction type.
state
string
Initialized , Completed or Failed . Indicates the state of the transaction
number
integer
The transaction number, useful when there’s need to reference the transaction in human communication. Not usable for programmatic identification of the transaction, where id should be used instead.
amount
integer
The transaction amount (including VAT, if any) entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK.
vatAmount
integer
The payment’s VAT (Value Added Tax) amount, entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK. The vatAmount entered will not affect the amount shown on the payment page, which only shows the total amount. This field is used to specify how much of the total amount the VAT will be. Set to 0 (zero) if there is no VAT amount charged.
description
string
A 40 character length textual description of the purchase.
payeeReference
string
A unique reference from the merchant system. Set per operation to ensure an exactly-once delivery of a transactional operation. Length and content validation depends on whether the transaction.number or the payeeReference is sent to the acquirer. If Swedbank Pay handles thesettlement, the transaction.number is sent and the payeeReference must be in the format of A-Za-z0-9 and string(50). If you handle the settlement, Swedbank Pay will send the payeeReference and it will be limited to the format of string(12). All characters must be digits.
isOperational
boolean
true if the transaction is operational; otherwise false .
operations
array
The array of operations that are possible to perform on the payment order in its current state.
List Cancel Transactions
The cancellations resource lists the cancellation transactions on a specific
payment.
The cancellation resource contains information about the
cancellation transaction made against a creditcard payment. You can
return a specific cancellation transaction by performing a GET request
towards the specific transaction’s id.
The relative URL and unique identifier of the payment resource . Please read about URL Usage to understand how this and other URLs should be used in your solution.
id
string
The relative URL and unique identifier of the cancellations resource . Please read about URL Usage to understand how this and other URLs should be used in your solution.
{{ transaction }}List
array
The array of cancellation transaction objects.
{{ transaction }}List[]
object
The cancellation transaction object described in the cancellation resource below.
id
string
The relative URL and unique identifier of the transaction resource . Please read about URL Usage to understand how this and other URLs should be used in your solution.
created
string
The ISO-8601 date and time of when the transaction was created.
updated
string
The ISO-8601 date and time of when the transaction was updated.
type
string
Indicates the transaction type.
state
string
Indicates the state of the transaction, usually initialized, completed or failed. If a partial cancellation has been done and further transactions are possible, the state will be awaitingActivity.
number
integer
The transaction number, useful when there’s need to reference the transaction in human communication. Not usable for programmatic identification of the transaction, where id should be used instead.
amount
integer
The transaction amount (including VAT, if any) entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK.
vatAmount
integer
The payment’s VAT (Value Added Tax) amount, entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK. The vatAmount entered will not affect the amount shown on the payment page, which only shows the total amount. This field is used to specify how much of the total amount the VAT will be. Set to 0 (zero) if there is no VAT amount charged.
description
string
A 40 character length textual description of the purchase.
payeeReference
string
A unique reference from the merchant system. Set per operation to ensure an exactly-once delivery of a transactional operation. Length and content validation depends on whether the transaction.number or the payeeReference is sent to the acquirer. If Swedbank Pay handles thesettlement, the transaction.number is sent and the payeeReference must be in the format of A-Za-z0-9 and string(50). If you handle the settlement, Swedbank Pay will send the payeeReference and it will be limited to the format of string(12). All characters must be digits. In Invoice Payments payeeReference is used as an invoice/receipt number, if the receiptReference is not defined.
isOperational
bool
true if the transaction is operational; otherwise false.
operations
array
The array of operations that are possible to perform on the transaction in its current state.
The transaction amount (including VAT, if any) entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK.
check
vatAmount
integer
The payment’s VAT (Value Added Tax) amount, entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK. The vatAmount entered will not affect the amount shown on the payment page, which only shows the total amount. This field is used to specify how much of the total amount the VAT will be. Set to 0 (zero) if there is no VAT amount charged.
check
description
string
A textual description of the reversal.
check
payeeReference
string
A unique reference from the merchant system. Set per operation to ensure an exactly-once delivery of a transactional operation. Length and content validation depends on whether the transaction.number or the payeeReference is sent to the acquirer. If Swedbank Pay handles thesettlement, the transaction.number is sent and the payeeReference must be in the format of A-Za-z0-9 and string(50). If you handle the settlement, Swedbank Pay will send the payeeReference and it will be limited to the format of string(12). All characters must be digits.
Reversal Response
The reversal resource contains information about the newly created reversal
transaction.
The relative URL of the payment this reversal transaction belongs to.
reversal
object
The reversal resource contains information about the reversal transaction made against a card payment.
id
string
The relative URL of the created reversaltransaction.
transaction
object
The object representation of the generic transaction resource, containing information about the current transaction.
id
string
The relative URL of the current transaction resource.
created
string
The ISO-8601 date and time of when the transaction was created.
updated
string
The ISO-8601 date and time of when the transaction was updated.
type
string
Indicates the transaction type.
state
string
Indicates the state of the transaction, usually initialized, completed or failed. If a partial cancellation has been done and further transactions are possible, the state will be awaitingActivity.
number
string
The transaction number, useful when there’s need to reference the transaction in human communication. Not usable for programmatic identification of the transaction, where id should be used instead.
amount
integer
The transaction amount (including VAT, if any) entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK.
vatAmount
integer
The payment’s VAT (Value Added Tax) amount, entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK. The vatAmount entered will not affect the amount shown on the payment page, which only shows the total amount. This field is used to specify how much of the total amount the VAT will be. Set to 0 (zero) if there is no VAT amount charged.
description
string
A 40 character length textual description of the purchase.
payeeReference
string
A unique reference from the merchant system. Set per operation to ensure an exactly-once delivery of a transactional operation. Length and content validation depends on whether the transaction.number or the payeeReference is sent to the acquirer. If Swedbank Pay handles thesettlement, the transaction.number is sent and the payeeReference must be in the format of A-Za-z0-9 and string(50). If you handle the settlement, Swedbank Pay will send the payeeReference and it will be limited to the format of string(12). All characters must be digits.
failedReason
string
The human readable explanation of why the payment failed.
isOperational
boolean
true if the transaction is operational; otherwise false .
operations
array
The array of operations that are possible to perform on the payment order in its current state.
List Reversal Transactions
The reversals resource lists the reversal transactions (one or more) on a
specific payment.
The reversal resource contains information about the
reversal transaction made against a creditcard payment. You can
return a specific reversal transaction by performing a GET request
towards the specific transaction’s id.
The relative URL and unique identifier of the payment resource . Please read about URL Usage to understand how this and other URLs should be used in your solution.
id
string
The relative URL and unique identifier of the reversals resource . Please read about URL Usage to understand how this and other URLs should be used in your solution.
{{ transaction }}List
array
The array of reversal transaction objects.
{{ transaction }}List[]
object
The reversal transaction object described in the reversal resource below.
id
string
The relative URL and unique identifier of the transaction resource . Please read about URL Usage to understand how this and other URLs should be used in your solution.
created
string
The ISO-8601 date and time of when the transaction was created.
updated
string
The ISO-8601 date and time of when the transaction was updated.
type
string
Indicates the transaction type.
state
string
Indicates the state of the transaction, usually initialized, completed or failed. If a partial reversal has been done and further transactions are possible, the state will be awaitingActivity.
number
integer
The transaction number, useful when there’s need to reference the transaction in human communication. Not usable for programmatic identification of the transaction, where id should be used instead.
amount
integer
The transaction amount (including VAT, if any) entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK.
vatAmount
integer
The payment’s VAT (Value Added Tax) amount, entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK. The vatAmount entered will not affect the amount shown on the payment page, which only shows the total amount. This field is used to specify how much of the total amount the VAT will be. Set to 0 (zero) if there is no VAT amount charged.
description
string
A 40 character length textual description of the purchase.
payeeReference
string
A unique reference from the merchant system. Set per operation to ensure an exactly-once delivery of a transactional operation. Length and content validation depends on whether the transaction.number or the payeeReference is sent to the acquirer. If Swedbank Pay handles thesettlement, the transaction.number is sent and the payeeReference must be in the format of A-Za-z0-9 and string(50). If you handle the settlement, Swedbank Pay will send the payeeReference and it will be limited to the format of string(12). All characters must be digits. In Invoice Payments payeeReference is used as an invoice/receipt number, if the receiptReference is not defined.
isOperational
bool
true if the transaction is operational; otherwise false.
operations
array
The array of operations that are possible to perform on the transaction in its current state.