Update Merchant
PUT/v1/merchants/:merchantId
Update a merchant
Request
Path Parameters
- application/json
Body
required
Merchant name
Merchant public name. This will be used in the invoices checkout page on (checkout.moyasar.com)
ISO-3166-1 alpha-2 country code.
Default value: Asia/Riyadh
Merchant timezone identifier
URL for the Merchant website where payment service will be provided.
Merchant main communication email. This will be used by Moyasar staff to contact the merchant in case of chargebacks or updates.
Merchant name that will appear on the cardholder statement.
Possible values: [mada, visa, master]
Default value: mada,visa,master
This is used to specify card schemes allowed for the merchant
Possible values: [creditcard, applepay, samsungpay, googlepay, stcpay]
Default value: creditcard,applepay,samsungpay,googlepay
This is used to specify payment methods allowed for the merchant
fees
object
Indicate if the fee parameters are VAT inclusive. The default is false.
Variable charge rate (percentage) for mada.
Fixed charge fee for mada.
Default value: 200
Should always be 200.00 SAR (the maximum rated charge fee applied per transaction).
Variable refund rate (percentage) for mada.
Fixed refund fee for mada.
mada refund cap (the maximum rated refund fee applied per transaction).
Variable charge rate (percentage) for local Visa and Mastercard.
Fixed charge fee for local Visa and Mastercard.
Local Visa and Mastercard charge cap (the maximum rated charge fee applied per transaction).
Variable refund rate (percentage) for local Visa and Mastercard.
Fixed refund fee for local Visa and Mastercard.
Local Visa and Mastercard refund cap (the maximum rated refund fee applied per transaction).
Variable charge rate (percentage) for international Visa and Mastercard (non-SA cards).
Fixed charge fee for international Visa and Mastercard (non-SA cards).
International Visa and Mastercard charge cap (the maximum rated charge fee applied per transaction).
Variable refund rate (percentage) for international Visa and Mastercard (non-SA cards).
Fixed refund fee for international Visa and Mastercard (non-SA cards).
International Visa and Mastercard refund cap (the maximum rated refund fee applied per transaction).
Variable charge rate (percentage) for STC Pay. Required when stcpay payment method is activated.
Fixed charge fee for STC Pay. Required when stcpay payment method is activated.
STC Pay charge cap (the maximum rated charge fee applied per transaction).
Variable refund rate (percentage) for STC Pay.
Fixed refund fee for STC Pay. Required when stcpay payment method is activated.
STC Pay refund cap (the maximum rated refund fee applied per transaction).
Variable charge rate (percentage) for local American Express.
Fixed charge fee for local American Express.
Local American Express charge cap (the maximum rated charge fee applied per transaction).
Variable refund rate (percentage) for local American Express.
Fixed refund fee for local American Express.
Local American Express refund cap (the maximum rated refund fee applied per transaction).
Variable charge rate (percentage) for international American Express (non-SA cards).
Fixed charge fee for international American Express (non-SA cards).
International American Express charge cap (the maximum rated charge fee applied per transaction).
Variable refund rate (percentage) for international American Express (non-SA cards).
Fixed refund fee for international American Express (non-SA cards).
International American Express refund cap (the maximum rated refund fee applied per transaction).
Default value: 0
Variable rate (percentage) applied on settlement transfers.
Default value: 0
Fixed fee applied on settlement transfers.
Responses
- 200
- 400
- 401
- 403
- 404
Merchant updated successfully
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
- ActivityLicenseInfo
- BankCertificateInfo
- CommercialRegistrationInfo
- CompanyAddressInfo
- OwnerAddressInfo
- SignatoryAddressInfo
- FreelanceCertificateInfo
- InvestmentLicenseInfo
- OwnerIdInfo
- SignatoryIdInfo
- PowerOfAttorneyInfo
- VatCertificateInfo
- OtherInfo
]
Array [
- ActivityLicenseInfo
- BankCertificateInfo
- CommercialRegistrationInfo
- CompanyAddressInfo
- OwnerAddressInfo
- SignatoryAddressInfo
- FreelanceCertificateInfo
- InvestmentLicenseInfo
- OwnerIdInfo
- SignatoryIdInfo
- PowerOfAttorneyInfo
- VatCertificateInfo
- OtherInfo
]
Merchant ID. Used only with Platform API.
Entity ID (Merchant Account). This ID is used with all other APIs.
Possible values: [freelancer, establishment, company, foreign_company, government, charity]
Merchant type determine the goverment category for the onboarded merchant and also affects the required KYC documents.
Possible values: [pending, missing_docs, under_review, semi_active, active, hold, rejected, disabled]
Merchant current status.
The status missing_docs indicates that there are required changes that must be done for the merchant which can be found in reasons.
After fixing the issues, the merchant must be submitted again for review.
Merchant name
Merchant name that will appear on the cardholder statement.
Indicate if all required documents has been uploaded.
signature
object
Possible values: [unsigned, initiated, signed]
api_keys
object
Entity's API keys.
test
object
Account publishable API key.
Account secret API key.
This key will only be returned once during merchant created. You must this key securely within your infrastructure.
There no way to view this key again, it must be regenerated using the Regenerate Key endpoint.
live
object
Account publishable API key.
Account secret API key.
This key will only be returned once during merchant created. You must this key securely within your infrastructure.
There no way to view this key again, it must be regenerated using the Regenerate Key endpoint.
fees
object[]
Fee type name
Variable charge rate
Fixed charge fee
Possible values: [mada, visa, master]
Enabled schemes for this merchants.
Possible values: [creditcard, applepay, samsungpay, googlepay, stcpay]
Enabled payment methods for this merchant.
required_documents
object[]
Possible values: [activity_license, bank_iban_certificate, commercial_registration, company_address, freelance_certificate, investment_license, official_letter, owner_address, owner_id, power_of_attorney, signatory_address, signatory_id, vat_certificate, memorandum_of_association, other]
info
object
oneOf
Activity License. Needed when the activity in CR requires one.
Possible values: <= 255 characters
Activity license number.
Official Bank IBAN Certificate
Possible values: <= 255 characters
IBAN holder person/entity name as registered on bank records.
Possible values: >= 24 characters and <= 24 characters, Value must match regular expression ^SA\d{22}$
Valid IBAN number for the card holder
Commercial Registration for the merchant business.
Possible values: >= 10 characters and <= 10 characters, Value must match regular expression ^[17]\d{9}$
Must be a valid CR number (starts with 1) or a valid unified number (starts with 7).
Official Proof of National Address for the merchant business.
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
ISO-3166-1 alpha-2 country code.
Official Proof of National Address for the merchant business.
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
ISO-3166-1 alpha-2 country code.
Official Proof of National Address for the merchant business.
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
ISO-3166-1 alpha-2 country code.
Freelance Certificate
Possible values: <= 255 characters
Freelance certificate number.
Investment License issued by the Ministry of Investment
Possible values: <= 255 characters
Investment license number.
National/Expat ID of the business owner.
Possible values: >= 10 characters and <= 10 characters, Value must match regular expression ^[12]\d{9}$
A valid Saudi or Expat government ID
Possible values: >= 10 characters and <= 10 characters
A valid Saudi mobile number
National/Expat ID of the authorized signatory.
Possible values: >= 10 characters and <= 10 characters, Value must match regular expression ^[12]\d{9}$
A valid Saudi or Expat government ID
Possible values: >= 10 characters and <= 10 characters
A valid Saudi mobile number
Power of Attorney issued by the Ministry of Justice that gives a person the ability to sign on agreements.
Possible values: <= 255 characters
Power of Attorney reference number.
VAT certificate if the business is required to pay taxes by law. The name must match the one in Commercial Registration.
Possible values: <= 255 characters
Investment license number.
Any type of document that is not categorized.
Indicate if the document type requires a file to be attached.
The minimum number of required documents of the same type. E.g. when specifying 5 owners, then 5 owner IDs must be added using the Upload Document endpoint.
Comment left by the onboarding team related to the merchant status.
List of reasons on why the merchant was rejected or changes were requested (missing_docs).
documents
object[]
Possible values: [activity_license, bank_iban_certificate, commercial_registration, company_address, freelance_certificate, investment_license, official_letter, owner_address, owner_id, power_of_attorney, signatory_address, signatory_id, vat_certificate, memorandum_of_association, other]
info
object
oneOf
Activity License. Needed when the activity in CR requires one.
Possible values: <= 255 characters
Activity license number.
Official Bank IBAN Certificate
Possible values: <= 255 characters
IBAN holder person/entity name as registered on bank records.
Possible values: >= 24 characters and <= 24 characters, Value must match regular expression ^SA\d{22}$
Valid IBAN number for the card holder
Commercial Registration for the merchant business.
Possible values: >= 10 characters and <= 10 characters, Value must match regular expression ^[17]\d{9}$
Must be a valid CR number (starts with 1) or a valid unified number (starts with 7).
Official Proof of National Address for the merchant business.
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
ISO-3166-1 alpha-2 country code.
Official Proof of National Address for the merchant business.
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
ISO-3166-1 alpha-2 country code.
Official Proof of National Address for the merchant business.
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
ISO-3166-1 alpha-2 country code.
Freelance Certificate
Possible values: <= 255 characters
Freelance certificate number.
Investment License issued by the Ministry of Investment
Possible values: <= 255 characters
Investment license number.
National/Expat ID of the business owner.
Possible values: >= 10 characters and <= 10 characters, Value must match regular expression ^[12]\d{9}$
A valid Saudi or Expat government ID
Possible values: >= 10 characters and <= 10 characters
A valid Saudi mobile number
National/Expat ID of the authorized signatory.
Possible values: >= 10 characters and <= 10 characters, Value must match regular expression ^[12]\d{9}$
A valid Saudi or Expat government ID
Possible values: >= 10 characters and <= 10 characters
A valid Saudi mobile number
Power of Attorney issued by the Ministry of Justice that gives a person the ability to sign on agreements.
Possible values: <= 255 characters
Power of Attorney reference number.
VAT certificate if the business is required to pay taxes by law. The name must match the one in Commercial Registration.
Possible values: <= 255 characters
Investment license number.
Any type of document that is not categorized.
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "freelancer",
"status": "pending",
"name": "Chocolate Factory",
"website": "https://example.com",
"email": "[email protected]",
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z",
"statement_descriptor": "CHOCO",
"owners_count": 0,
"signatory": "string",
"signatory_count": 0,
"documents_complete": true,
"signature": {
"status": "initiated",
"url": "https://example.moyasar.com/nafath-signing-page"
},
"api_keys": {
"test": {
"publishable_key": "string",
"secret_key": "string"
},
"live": {
"publishable_key": "string",
"secret_key": "string"
}
},
"fees": [
{
"name": "cc_charge_rate",
"rate": 2.75,
"fixed": 0.5
}
],
"enabled_schemes": [
"mada",
"visa",
"master"
],
"payment_methods": [
"creditcard",
"applepay",
"samsungpay",
"googlepay"
],
"required_documents": [
{
"type": "activity_license",
"requires_upload": true,
"required_count": 1
}
],
"comment": "This merchant line of work requires an activity license from FDA.",
"reasons": [
"string"
],
"documents": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "activity_license",
"file_uploaded": true
}
]
}
Business Error or validation error.
- application/json
- Schema
- Example (from schema)
Schema
Contains the error type
Human readable error message for the error
Contains string-array pair representing a field and list of validation errors.
{
"type": "invalid_request",
"message": null,
"errors": {
"foo": "this is returned for validation errors only"
}
}
Invalid authorization credentials
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [authentication_error]
Possible values: [Invalid authorization credentials]
{
"type": "authentication_error",
"message": "Invalid authorization credentials",
"errors": null
}
Invalid authorization credentials
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [api_error]
Possible values: [User not authorized]
{
"type": "api_error",
"message": "User not authorized",
"errors": null
}
One of the record referenced in the request was not found
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [record_not_found]
{
"type": "record_not_found",
"message": "The <object type> record you were looking for was not found.",
"errors": null
}