# Manual provisioning test cases source: https://developer.mastercard.com/business-payment-controls/documentation/testing/manual-provisioning/index.md ### Test data: Create End User {#test-data-create-end-user} **POST**/virtual-card-accounts/{account_guid}/end-user #### Positive sample response {#positive-sample-response} Success: Create an end user HTTP code `2xx` **Payload:** ```json { "firstName": "Create", "lastName": "EndUser", "email": "EndUserTest@mail.com", "phone": "+11234" } ``` #### Negative sample response {#negative-sample-response} Fail: User already exists HTTP code `4xx` **Payload:** ```json { "Errors": { "Error": [ { "Source": "account-service", "ReasonCode": "virtualCard.endUser.exists", "Description": "End user for virtual card was already registered", "Recoverable": false } ] } } ``` ### Test data: Update End User {#test-data-update-end-user} **PUT**/virtual-card-accounts/{account_guid}/end-user #### Positive sample response {#positive-sample-response} Success: Update an end user HTTP code `2xx` **Payload:** ```json { "firstName": "Update", "lastName": "EndUser", "email": "EndUserTest@mail.com", "phone": "+11234" } ``` #### Negative sample response {#negative-sample-response} Fail: End user does not exist HTTP code `4x4` **Payload:** ```json { { "Errors": { "Error": [ { "Source": "account-service", "ReasonCode": "virtualCard.endUser.not.found", "Description": "End user for virtual card is not registered", "Recoverable": false } ] } } ``` ### Test data: Retrieve end user details {#test-data-retrieve-end-user-details} **GET**/virtual-card-accounts/{account_guid}/end-user} #### Positive sample response {#positive-sample-response} Success: Get an end user HTTP code `2xx` **Payload:** ```json { "firstName": "Get", "lastName": "EndUser", "email": "EndUserTest@mail.com", "phone": "+11234" } ``` #### Negative sample response {#negative-sample-response} Fail: End user does not exist HTTP code `4x4` **Payload:** ```json { { "Errors": { "Error": [ { "Source": "account-service", "ReasonCode": "virtualCard.endUser.not.found", "Description": "End user for virtual card is not registered", "Recoverable": false } ] } } ```