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.
Field
Type
In/Out
Mandatory
Description
Validations
amount
float
I
N
amount to charge
min=0.001,max=99999.990
descr
string
I
N
item description
maxlen=255
name
string
I
Y
item name
maxlen=500
qt
integer
I
Y
quantity
min=1, max=2147483648
ref
string
I
N
item inventory reference
maxlen=100
RefundRequest
Field
Type
In/Out
Mandatory
Description
Validations
amount
float
I
N
amount to refund
min=0.01
ext_customerid
string
I
N
Merchant customer ID (for reference)
maxlen=255
ext_email
string
I
N
Customer email (for reference)
maxlen=255
ext_invoiceid
string
I
N
Merchant transaction reference
maxlen=255
notes
string
I
N
Merchant notes
maxlen=255
Client Data
Field
Type
In/Out
Mandatory
Description
Validations
address
address object
IO
N
described below
maxlen=255
email
string
IO
N
ex. foo@bar.com
maxlen=250
name
string
IO
N
payer supplied name
maxlen=100
nif
string
O
N
buyers fiscal number
maxlen=255
phone
string
IO
N
in E.164 format ex. 351961234567
Msisdn
Address
Field
Type
In/Out
Mandatory
Description
Validations
address
string
IO
N
street address including door number
minlen=2, maxlen=255
city
string
IO
N
ex. Lisboa
maxlen=100
country
string
IO
N
“PT”
iso-3166-alpha2
postalcode
string
IO
N
Postal code (ex. 1000-100)
maxlen=15
User
Describes a MEO Wallet current or future user.
Field
Type
In/Out
Mandatory
Description
email
string
O
Y
name
string
O
N
MBWayPayment
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