{
    "item": [
        {
            "id": "1b56ec2b-5c77-4cf2-8ecb-bdbc7428f31f",
            "name": "List Domains",
            "request": {
                "name": "List Domains",
                "description": {
                    "content": "List all Apple Pay domains for a merchant",
                    "type": "text/plain"
                },
                "url": {
                    "path": [
                        "v1",
                        "merchants",
                        ":merchant_id",
                        "domains"
                    ],
                    "host": [
                        "{{baseUrl}}"
                    ],
                    "query": [],
                    "variable": [
                        {
                            "type": "any",
                            "value": "<uuid>",
                            "key": "merchant_id",
                            "disabled": false,
                            "description": {
                                "content": "(Required) ",
                                "type": "text/plain"
                            }
                        }
                    ]
                },
                "header": [
                    {
                        "key": "Accept",
                        "value": "application/json"
                    }
                ],
                "method": "GET",
                "body": {},
                "auth": null
            },
            "response": [
                {
                    "id": "d6689ce9-a37c-4d41-b3bc-ab67f12e5002",
                    "name": "Successful response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "method": "GET",
                        "body": {}
                    },
                    "status": "OK",
                    "code": 200,
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application/json"
                        }
                    ],
                    "body": "{\n  \"domains\": [\n    {\n      \"id\": \"<uuid>\",\n      \"host\": \"<string>\",\n      \"status\": \"validated\"\n    },\n    {\n      \"id\": \"<uuid>\",\n      \"host\": \"<string>\",\n      \"status\": \"registered\"\n    }\n  ]\n}",
                    "cookie": [],
                    "_postman_previewlanguage": "json"
                },
                {
                    "id": "2fc2ba44-16ca-4171-be57-d5c893a62ca6",
                    "name": "401 response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "method": "GET",
                        "body": {}
                    },
                    "status": "Unauthorized",
                    "code": 401,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                },
                {
                    "id": "214b9de9-f5e0-4177-9b01-07221803fe9f",
                    "name": "403 response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "method": "GET",
                        "body": {}
                    },
                    "status": "Forbidden",
                    "code": 403,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                },
                {
                    "id": "a7cb3c3a-db8c-456d-9740-321d413d2e74",
                    "name": "404 response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "method": "GET",
                        "body": {}
                    },
                    "status": "Not Found",
                    "code": 404,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                }
            ],
            "event": [],
            "protocolProfileBehavior": {
                "disableBodyPruning": true
            }
        },
        {
            "id": "910e2b48-c95c-469c-a01e-df2d627cf4de",
            "name": "Add Domain",
            "request": {
                "name": "Add Domain",
                "description": {
                    "content": "Add a new domain to be used for Apple Pay",
                    "type": "text/plain"
                },
                "url": {
                    "path": [
                        "v1",
                        "merchants",
                        ":merchant_id",
                        "domains"
                    ],
                    "host": [
                        "{{baseUrl}}"
                    ],
                    "query": [],
                    "variable": [
                        {
                            "type": "any",
                            "value": "<uuid>",
                            "key": "merchant_id",
                            "disabled": false,
                            "description": {
                                "content": "(Required) ",
                                "type": "text/plain"
                            }
                        }
                    ]
                },
                "header": [
                    {
                        "key": "Content-Type",
                        "value": "application/json"
                    },
                    {
                        "key": "Accept",
                        "value": "application/json"
                    }
                ],
                "method": "POST",
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"host\": \"<string>\"\n}",
                    "options": {
                        "raw": {
                            "headerFamily": "json",
                            "language": "json"
                        }
                    }
                },
                "auth": null
            },
            "response": [
                {
                    "id": "4cfd0491-504e-4ab3-9ebb-c78277941813",
                    "name": "Domain added successfully",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "method": "POST",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"host\": \"<string>\"\n}",
                            "options": {
                                "raw": {
                                    "headerFamily": "json",
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "status": "Created",
                    "code": 201,
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application/json"
                        }
                    ],
                    "body": "{\n  \"id\": \"<uuid>\",\n  \"host\": \"<string>\",\n  \"status\": \"validated\"\n}",
                    "cookie": [],
                    "_postman_previewlanguage": "json"
                },
                {
                    "id": "28bbcf7d-e345-4da8-b385-b9aca794a1e1",
                    "name": "400 response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "method": "POST",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"host\": \"<string>\"\n}",
                            "options": {
                                "raw": {
                                    "headerFamily": "json",
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "status": "Bad Request",
                    "code": 400,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                },
                {
                    "id": "89f9a402-5d75-41ee-ac7c-2f5c9158b9d2",
                    "name": "401 response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "method": "POST",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"host\": \"<string>\"\n}",
                            "options": {
                                "raw": {
                                    "headerFamily": "json",
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "status": "Unauthorized",
                    "code": 401,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                },
                {
                    "id": "c6faa4bc-2554-467c-ace6-6aa2610c90bc",
                    "name": "403 response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "method": "POST",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"host\": \"<string>\"\n}",
                            "options": {
                                "raw": {
                                    "headerFamily": "json",
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "status": "Forbidden",
                    "code": 403,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                },
                {
                    "id": "6503503e-3e27-4147-8bc1-5c4abdb269bb",
                    "name": "404 response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "method": "POST",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"host\": \"<string>\"\n}",
                            "options": {
                                "raw": {
                                    "headerFamily": "json",
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "status": "Not Found",
                    "code": 404,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                }
            ],
            "event": [],
            "protocolProfileBehavior": {
                "disableBodyPruning": true
            }
        },
        {
            "id": "9581bb6c-df7f-4ef5-ac6e-139579b6c541",
            "name": "Get Association File",
            "request": {
                "name": "Get Association File",
                "description": {
                    "content": "Get the Apple Pay domain association file which is used during validation",
                    "type": "text/plain"
                },
                "url": {
                    "path": [
                        "v1",
                        "merchants",
                        ":merchant_id",
                        "domains",
                        "verification_file"
                    ],
                    "host": [
                        "{{baseUrl}}"
                    ],
                    "query": [],
                    "variable": [
                        {
                            "type": "any",
                            "value": "<uuid>",
                            "key": "merchant_id",
                            "disabled": false,
                            "description": {
                                "content": "(Required) ",
                                "type": "text/plain"
                            }
                        }
                    ]
                },
                "header": [
                    {
                        "key": "Accept",
                        "value": "application/json"
                    }
                ],
                "method": "GET",
                "body": {},
                "auth": null
            },
            "response": [
                {
                    "id": "47b828e3-2d02-4028-b73e-2d9b82b06221",
                    "name": "Successful response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains",
                                "verification_file"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "method": "GET",
                        "body": {}
                    },
                    "status": "OK",
                    "code": 200,
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application/json"
                        }
                    ],
                    "body": "{\n  \"message\": \"<string>\",\n  \"data\": \"<string>\"\n}",
                    "cookie": [],
                    "_postman_previewlanguage": "json"
                },
                {
                    "id": "8e47a56c-847f-4a8a-85f6-7e6895bf762a",
                    "name": "401 response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains",
                                "verification_file"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "method": "GET",
                        "body": {}
                    },
                    "status": "Unauthorized",
                    "code": 401,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                },
                {
                    "id": "14ee86cd-ce92-47ac-a4f1-5923e3dd0c50",
                    "name": "403 response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains",
                                "verification_file"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "method": "GET",
                        "body": {}
                    },
                    "status": "Forbidden",
                    "code": 403,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                },
                {
                    "id": "a1916909-168f-484c-ad91-8c194828b179",
                    "name": "404 response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains",
                                "verification_file"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "method": "GET",
                        "body": {}
                    },
                    "status": "Not Found",
                    "code": 404,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                }
            ],
            "event": [],
            "protocolProfileBehavior": {
                "disableBodyPruning": true
            }
        },
        {
            "id": "f63614d5-b622-45fb-8100-bd95200c0ae1",
            "name": "Validate Domain",
            "request": {
                "name": "Validate Domain",
                "description": {
                    "content": "Validate an Apple Pay domain",
                    "type": "text/plain"
                },
                "url": {
                    "path": [
                        "v1",
                        "merchants",
                        ":merchant_id",
                        "domains",
                        ":domain_id",
                        "validate"
                    ],
                    "host": [
                        "{{baseUrl}}"
                    ],
                    "query": [],
                    "variable": [
                        {
                            "type": "any",
                            "value": "<uuid>",
                            "key": "merchant_id",
                            "disabled": false,
                            "description": {
                                "content": "(Required) ",
                                "type": "text/plain"
                            }
                        },
                        {
                            "type": "any",
                            "value": "<uuid>",
                            "key": "domain_id",
                            "disabled": false,
                            "description": {
                                "content": "(Required) ",
                                "type": "text/plain"
                            }
                        }
                    ]
                },
                "method": "POST",
                "body": {},
                "auth": null
            },
            "response": [
                {
                    "id": "98acc4a6-1525-4403-abc9-c3a371abcb54",
                    "name": "Domain validation successful",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains",
                                ":domain_id",
                                "validate"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "method": "POST",
                        "body": {}
                    },
                    "status": "OK",
                    "code": 200,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                },
                {
                    "id": "c41fc7e9-572f-4ba3-8327-77b5aca78d74",
                    "name": "400 response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains",
                                ":domain_id",
                                "validate"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "method": "POST",
                        "body": {}
                    },
                    "status": "Bad Request",
                    "code": 400,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                },
                {
                    "id": "d51d31a9-d518-488a-98d6-a5c23faacf75",
                    "name": "401 response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains",
                                ":domain_id",
                                "validate"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "method": "POST",
                        "body": {}
                    },
                    "status": "Unauthorized",
                    "code": 401,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                },
                {
                    "id": "35c33146-f627-4c55-9097-37c723c010ab",
                    "name": "403 response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains",
                                ":domain_id",
                                "validate"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "method": "POST",
                        "body": {}
                    },
                    "status": "Forbidden",
                    "code": 403,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                },
                {
                    "id": "71b8452a-2d72-43d3-91db-856d9885eb28",
                    "name": "404 response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains",
                                ":domain_id",
                                "validate"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "method": "POST",
                        "body": {}
                    },
                    "status": "Not Found",
                    "code": 404,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                }
            ],
            "event": [],
            "protocolProfileBehavior": {
                "disableBodyPruning": true
            }
        },
        {
            "id": "e7ad0f79-14ed-4301-8894-9f4d55f3651b",
            "name": "Delete Domain",
            "request": {
                "name": "Delete Domain",
                "description": {
                    "content": "Deregister and delete an Apple Pay domain",
                    "type": "text/plain"
                },
                "url": {
                    "path": [
                        "v1",
                        "merchants",
                        ":merchant_id",
                        "domains",
                        ":domain_id"
                    ],
                    "host": [
                        "{{baseUrl}}"
                    ],
                    "query": [],
                    "variable": [
                        {
                            "type": "any",
                            "value": "<uuid>",
                            "key": "merchant_id",
                            "disabled": false,
                            "description": {
                                "content": "(Required) ",
                                "type": "text/plain"
                            }
                        },
                        {
                            "type": "any",
                            "value": "<uuid>",
                            "key": "domain_id",
                            "disabled": false,
                            "description": {
                                "content": "(Required) ",
                                "type": "text/plain"
                            }
                        }
                    ]
                },
                "method": "DELETE",
                "body": {},
                "auth": null
            },
            "response": [
                {
                    "id": "f97a313b-6cd5-4fb4-9e87-c44c11ce7d81",
                    "name": "Domain deleted successfully",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains",
                                ":domain_id"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "method": "DELETE",
                        "body": {}
                    },
                    "status": "No Content",
                    "code": 204,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                },
                {
                    "id": "1723da4b-427c-4cc5-bec2-e7c1cdcf7528",
                    "name": "400 response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains",
                                ":domain_id"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "method": "DELETE",
                        "body": {}
                    },
                    "status": "Bad Request",
                    "code": 400,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                },
                {
                    "id": "57fa53e1-bee2-4613-859e-57ec3d0d8ce6",
                    "name": "401 response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains",
                                ":domain_id"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "method": "DELETE",
                        "body": {}
                    },
                    "status": "Unauthorized",
                    "code": 401,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                },
                {
                    "id": "fd75bd06-e0d2-4949-a511-6a7329c42a03",
                    "name": "403 response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains",
                                ":domain_id"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "method": "DELETE",
                        "body": {}
                    },
                    "status": "Forbidden",
                    "code": 403,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                },
                {
                    "id": "d3d7156d-9066-4c7b-9fe4-d018f8c66af9",
                    "name": "404 response",
                    "originalRequest": {
                        "url": {
                            "path": [
                                "v1",
                                "merchants",
                                ":merchant_id",
                                "domains",
                                ":domain_id"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "method": "DELETE",
                        "body": {}
                    },
                    "status": "Not Found",
                    "code": 404,
                    "header": [],
                    "cookie": [],
                    "_postman_previewlanguage": "text"
                }
            ],
            "event": [],
            "protocolProfileBehavior": {
                "disableBodyPruning": true
            }
        }
    ],
    "auth": {
        "type": "basic",
        "basic": [
            {
                "type": "any",
                "value": "{{basicAuthUsername}}",
                "key": "username"
            },
            {
                "type": "any",
                "value": "{{basicAuthPassword}}",
                "key": "password"
            }
        ]
    },
    "event": [],
    "variable": [
        {
            "key": "baseUrl",
            "value": "https://apimig.moyasar.com"
        }
    ],
    "info": {
        "_postman_id": "2a601db1-3a97-410a-98c3-d32af377eb1e",
        "name": "Moyasar Platform API",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
        "description": {
            "content": "API for managing merchants, documents, webhooks, and transfers on the Moyasar payment platform\n\nContact Support:\n Name: Moyasar API Support",
            "type": "text/plain"
        }
    }
}