Service

Name Delete Credit Card
Description Delete credit card
Method DELETE
URL /bills/card/credit
Example /api/bills/card/credit
Access OWNER, MANAGER, TRAVELER

HTTP Headers

Authorization eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXUyJ9...

Parameters

Fields Type Required Description
billing number yes Id of the card.

Response

            
                {
                    "code": R111,
                    "message": "Success"
                }
            
            

Response Codes

Code Message Cause Possible Frontend Message [Behavior]
EC000 Internal error in API Internal error connecting the database "Oops! Looks like we hit a snag. Try closing the app and reopening it."
EC001 User not found Token user id doesn't match our records "Sorry, We couldn't find your information!"
EC005 Billing not found Billing id doesn't match our records "Sorry, We couldn't find that billing!"
EC036 EPP associated with the account The credit card has an Early Payment Plan associated
EC038 Billing not belong to that user The user logged in is not the debit card owner "Sorry, you do not have access to that information!"
R000 Fail The credit card wasn't deleted
R111 Success The operation was successful [Show the changes]
SC006 User no authorization The token role is not valid for using the API services "You have been logged out." - [Take the user to the login screen]
SC014 Expired token The token has expired "You have been logged out." - [Take the user to the login screen]
VID242 Invalid input for billing Billing id doesn't have only numbers "Sorry, We couldn't find that billing!"