{"_id":"56e92b441996862200fd7f2e","__v":2,"user":"544fc065698ab40800b4f888","category":{"_id":"56326e9ddf556c0d00cd08d0","__v":2,"pages":["56326ea0df556c0d00cd08ec","56326ea0df556c0d00cd08ed","56e92b441996862200fd7f2e"],"project":"544fc17e698ab40800b4f891","version":"56326e9cdf556c0d00cd08ca","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-05-01T05:42:12.353Z","from_sync":false,"order":5,"slug":"cash-out","title":"Cash Out"},"editedParams":true,"version":{"_id":"56326e9cdf556c0d00cd08ca","project":"544fc17e698ab40800b4f891","__v":2,"createdAt":"2015-10-29T19:08:12.724Z","releaseDate":"2015-10-29T19:08:12.724Z","categories":["56326e9ddf556c0d00cd08cb","56326e9ddf556c0d00cd08cc","56326e9ddf556c0d00cd08cd","56326e9ddf556c0d00cd08ce","56326e9ddf556c0d00cd08cf","56326e9ddf556c0d00cd08d0","56326e9ddf556c0d00cd08d1","56326e9ddf556c0d00cd08d2","56326e9ddf556c0d00cd08d3","56326e9ddf556c0d00cd08d4","56d942ac337fd11300d6a251"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"collector","version_clean":"2.1.0","version":"2.1"},"project":"544fc17e698ab40800b4f891","editedParams2":true,"parentDoc":null,"updates":["59c60eb1bb8003001c92587c","59c60ee6d34af8001cdd6e85"],"next":{"pages":[],"description":""},"createdAt":"2016-03-16T09:45:40.831Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","examples":{"codes":[{"code":"import json\nimport requests\n\nTOKEN = 'YOUR TOKEN'\nurl = 'https://coins.ph/api/v3/validate-field/'\n\nheaders = {\n    'Authorization': 'Bearer {}'.format(TOKEN),\n    'Content-Type': 'application/json;charset=UTF-8',\n    'Accept': 'application/json'\n}\n\nbody = json.dumps({\n    'field_type': 'account_number',\n    'account_number': '3589101185',\n    'account_type': 'bpi'\n})\n\nrequests.post(url, headers=headers, data=body)","language":"python"}]},"method":"post","results":{"codes":[{"name":"","code":"{\n  \"is_valid\": true\n}","language":"json","status":200},{"name":"","code":"{\n    \"errors\": {\n        \"account_number\": [\"Bank account number should be 10 digits\"]\n    }\n}","language":"json","status":400}]},"auth":"required","params":[{"_id":"56e92b441996862200fd7f31","ref":"","in":"body","required":true,"desc":"The kind of field to validate. Valid values are `account_number` and `mobile_number`.","default":"","type":"string","name":"field_type"},{"_id":"56e92b441996862200fd7f30","ref":"","in":"body","required":true,"desc":"Specifies the value of an account number","default":"","type":"string","name":"account_number"},{"_id":"56e92b441996862200fd7f2f","ref":"","in":"body","required":true,"desc":"The payment outlet ID where the account number field value should be validated against.","default":"","type":"string","name":"account_type"}],"url":"/api/v3/validate-field/"},"isReference":false,"order":2,"body":"Cash outs require users to fill up fields that give us information about the recipient. These fields vary per payment outlet, and have different validation rules. This endpoint helps determine whether a field value is valid.","excerpt":"Validate field values","slug":"validate-field","type":"endpoint","title":"validate-field"}

postvalidate-field

Validate field values

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

field_type:
required
string
The kind of field to validate. Valid values are `account_number` and `mobile_number`.
account_number:
required
string
Specifies the value of an account number
account_type:
required
string
The payment outlet ID where the account number field value should be validated against.

Examples


Result Format


Documentation

Cash outs require users to fill up fields that give us information about the recipient. These fields vary per payment outlet, and have different validation rules. This endpoint helps determine whether a field value is valid.