The Operation structure describes monetary operations on your account. Currently it can describe one of seven different operation types, indicated by the type field. The table describes the possible fields and indicates on which types (Payment, Walletfunds, Usertransfer, Refund, Auth, Capture, RELease) they are present.
Note:Capture behaves like a Payment.
Authorization and RELease are used to retain or release money related with an authorization.
expiration date of the payment in ISO 8601 YYYY-MM-DDThh:mm:ssTZD format. If this field is not provided your payment will be valid for 1000 minutes
instant
boolean
IO
N
Y
N
N
N
Useful if you have the MB method available in your checkout page. Set this field to true to create an instant reference. You must use this field with the expires field described above (minimum duration = 1 hour)
request_id
string
IO
N
Y
N
N
Y
UUID used to track the request
The status field may be one of the following
Status
Description
COMPLETED
Operation is completed with success
FAIL
Operation has failed, user canceled it or there aren’t funds available
NEW
Operation as not been started yet
PENDING
Operation is pending of some external event (such as user action)
The type field may be one of the following
Type
Description
PAYMENT
A payment results from a checkout process. It includes the information originally passed on checkout creation and the payment information resulting from the user actions.
REFUND
A refund of a refundable operation, links to original operation
USERTRANSFER
A transfer of funds between MEO Wallet users
WALLETFUNDS
A transfer of funds from outside MEO Wallet into a user’s wallet
AUTH
An authorization given to a configured amount to be captured or released later
CAPTURE
A capture results from a checkout authorization process. It includes the information originally passed on checkout creation and the authorization information resulting from the user actions
RELEASE
Cancels a previously authorized amount. If amount is omited, cancels the original amount defined at the authorization checkout process
The method field may be one of the following
Method
Description
CC
Credit Card
MB
Multibanco
MBWAY
MB WAY
PAYPAL
PayPal
WALLET
MEO Wallet balance
GPAY
Google Pay - used only as input flag to exclude or define Google Pay as default method in the checkout
APAY
Apple Pay - used only as input flag to exclude or define Apple Pay as default method in the checkout
The dd_status_code field can take the following values
Code
Description
0000
Payment or Reversal Success
1999
Error due to generic data provided through API
1989
Error due to bank account details provided through API
1979
Error due to bank account details (Name) provided through API
1969
Error due to bank account details (IBAN) provided through API
2999
Error due to Debtors bank
3999
Unrecoverable error due to an external event (usually performed by the debtor) or temporary error. May se solved by retrying the payment operation with the same payment data
4999
Unrecoverable error that requires executing more complex/time consuming procedure and hence cannot be solved by retrying the payment operation with the same data
5999
Refund Success
5989
Refund or Reversal Failed
PaymentItem
A PaymentItem describes a line item on an invoice. It can be provided to produce a more helpful MEO Wallet checkout page or for later API lookup.
A MBWayPayment object describes the structure which contains details to be provided for a MB WAY payment. At this moment, MEO Wallet only supports payments providing customer mobile phone number.
Field
Type
In/Out
Mandatory
Description
phone
string
IO
Y
Portuguese mobile numbers: don’t send country calling code
ReferenceRequest
Describes the request for creating a MB reference for recurring payments