Update a Customer Bill
patch
                    /customerBill/{id}
Updates a customer bill. You can update the value of the state property of the bill from InProgress to OnHold or from OnHold to InProgress.
                Request
Path Parameters
                - 
                    id(required):  string
                    
                    The ID of the customer bill to update.
Supported Media Types
                            - application/json;charset=utf-8
The updated customer bill.
                        
                            
                        
                           Root Schema : Customer Bill Update
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Customer Bill UpdateA customer bill, used in the bill update request when changing the bill's state.
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        state: string
                    
                    
                     
                    
                
                
                Title:State ValueAllowed Values:[ "new", "partiallyPaid", "settled", "onHold", "inProgress" ]Possible values for a bill's state.
Response
Supported Media Types
                - application/json;charset=utf-8
200 Response
Updated
                            
                            
                                Root Schema : Customer Bill
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Customer BillA customer bill, also called an invoice.
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        amountDue(required): object
                    
                    
                     object 
                    
                
                
                    Money
                
                
                Title:MoneyAn amount of money.
- 
                
                    
                        appliedPayment: array
                    
                    
                    
                    array 
                
                
                    appliedPayment
                
                
                Payments applied to the bill.
- 
                
                    
                        billDate(required): string
                    
                    
                     (date-time) 
                    
                
                
                Title:Bill DateThe date the bill was generated.
- 
                
                    
                        billDocument: array
                    
                    
                    
                    array 
                
                
                    billDocument
                
                
                A document attached to the bill.
- 
                
                    
                        billingAccount: object
                    
                    
                     object 
                    
                
                
                    Billing Account Ref
                
                
                Title:Billing Account RefA billing account reference.
- 
                
                    
                        billingPeriod: object
                    
                    
                     object 
                    
                
                
                    Time Period
                
                
                Title:Time PeriodA period of time. You can specify only endDateTime or both endDateTime and startDateTime.
- 
                
                    
                        billNo: string
                    
                    
                     
                    
                
                
                Title:Bill NumberThe bill's number.
- 
                
                    
                        category: string
                    
                    
                     
                    
                
                
                Title:Bill CategoryThe bill's category. For example, normal, duplicate, interim, last.
- 
                
                    
                        financialAccount: object
                    
                    
                     object 
                    
                
                
                    Financial Account Ref
                
                
                Title:Financial Account RefA financial account reference.
- 
                
                    
                        href(required): string
                    
                    
                     
                    
                
                
                Title:Bill HrefThe bill's href.
- 
                
                    
                        id(required): string
                    
                    
                     
                    
                
                
                Title:Bill IDThe bill's ID.
- 
                
                    
                        lastUpdate: string
                    
                    
                     (date-time) 
                    
                
                
                Title:Bill Last Updated DateThe date that the bill was last updated.
- 
                
                    
                        nextBillDate: string
                    
                    
                     (date-time) 
                    
                
                
                Title:Next Bill DateThe date the next bill will be generated.
- 
                
                    
                        paymentDueDate(required): string
                    
                    
                     (date-time) 
                    
                
                
                Title:Payment Due DateThe bill's due date.
- 
                
                    
                        paymentMethod: object
                    
                    
                     object 
                    
                
                
                    Payment Method Ref
                
                
                Title:Payment Method RefA reference to a payment method.
- relatedParty: array array relatedParty
- 
                
                    
                        remainingAmount: object
                    
                    
                     object 
                    
                
                
                    Money
                
                
                Title:MoneyAn amount of money.
- 
                
                    
                        runType: string
                    
                    
                     
                    
                
                
                Title:Bill Run TypeThe way the bill was generated, either onCycle (a regular billing cycle run) or offCycle (an on-demand request. For example, if requested by the customer or if the account closes.)
- 
                
                    
                        state(required): string
                    
                    
                     
                    
                
                
                Title:State ValueAllowed Values:[ "new", "partiallyPaid", "settled", "onHold", "inProgress" ]Possible values for a bill's state.
- 
                
                    
                        taxExcludedAmount: object
                    
                    
                     object 
                    
                
                
                    Money
                
                
                Title:MoneyAn amount of money.
- 
                
                    
                        taxIncludedAmount: object
                    
                    
                     object 
                    
                
                
                    Money
                
                
                Title:MoneyAn amount of money.
- 
                
                    
                        taxItem: array
                    
                    
                    
                    array 
                
                
                    taxItem
                
                
                Taxes on the bill.
Nested Schema : Money
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    MoneyAn amount of money.
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        unit: string
                    
                    
                     
                    
                
                
                Title:CurrencyAn ISO 4217 three letter currency code.
- 
                
                    
                        value: number
                    
                    
                     (float) 
                    
                
                
                Title:AmountA positive floating point number.
Nested Schema : appliedPayment
    
    	
    	Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayPayments applied to the bill.
    
    
    
    
    
        Show Source
        - 
            Array of: 
                object  Applied Payment
            
            Title:Applied PaymentA payment that can be assigned to a bill.
Nested Schema : billDocument
    
    	
    	Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayA document attached to the bill.
    
    
    
    
    
        Show Source
        - 
            Array of: 
                object  Attachment Ref Or Value
            
            Title:Attachment Ref Or ValueAn attachment reference or value. The baseType, type, schemaLocation and referredType properties are related to the contained object, not the AttchmentRefOrValue.
Nested Schema : Billing Account Ref
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Billing Account RefA billing account reference.
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @referredType: string
                    
                    
                     
                    
                
                
                Title:Referred TypeThe object's type in the target system, if baseType and type need further disambiguation.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        href: string
                    
                    
                     
                    
                
                
                Title:Billing Account HrefThe billing account reference's href.
- 
                
                    
                        id(required): string
                    
                    
                     
                    
                
                
                Title:Billing Account IDThe billing account reference's ID.
- 
                
                    
                        name: string
                    
                    
                     
                    
                
                
                Title:Billing Account NameThe billing account reference's name.
Nested Schema : Time Period
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Time PeriodA period of time. You can specify only endDateTime or both endDateTime and startDateTime.
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        endDateTime: string
                    
                    
                     (date-time) 
                    
                
                
                Title:End DateTimeThe end of the time period in IETC-RFC-3339 format.Example:1985-04-12T23:20:50.520Z
- 
                
                    
                        startDateTime: string
                    
                    
                     (date-time) 
                    
                
                
                Title:Start DateTimeThe start of the time period in IETC-RFC-3339 format. If you specify this, you must also specify endDateTime.Example:1985-04-12T23:20:50.520Z
Nested Schema : Financial Account Ref
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Financial Account RefA financial account reference.
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @referredType: string
                    
                    
                     
                    
                
                
                Title:Referred TypeThe object's type in the target system, if baseType and type need further disambiguation.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        accountBalance: object
                    
                    
                     object 
                    
                
                
                    Account Balance
                
                
                Title:Account BalanceA balance associated with an account.
- 
                
                    
                        href: string
                    
                    
                     
                    
                
                
                Title:Financial Account HrefThe account's href.
- 
                
                    
                        id(required): string
                    
                    
                     
                    
                
                
                Title:Financial Account IDThe account's ID.
- 
                
                    
                        name: string
                    
                    
                     
                    
                
                
                Title:Financial Account NameThe account's name.
Nested Schema : Payment Method Ref
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Payment Method RefA reference to a payment method.
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @referredType: string
                    
                    
                     
                    
                
                
                The object's type in the target system, if baseType and type need further disambiguation.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        href: string
                    
                    
                     (uri) 
                    
                
                
                Title:HrefThe payment method's href.
- 
                
                    
                        id(required): string
                    
                    
                     
                    
                
                
                Title:IDThe payment method's ID.
- 
                
                    
                        name: string
                    
                    
                     
                    
                
                
                Title:NameThe payment method's name.
Nested Schema : taxItem
    
    	
    	Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayTaxes on the bill.
    
    
    
    
    
        Show Source
        - 
            Array of: 
                object  State Values
            
            Title:State ValuesA tax item.
Nested Schema : Applied Payment
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Applied PaymentA payment that can be assigned to a bill.
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        appliedAmount: object
                    
                    
                     object 
                    
                
                
                    Money
                
                
                Title:MoneyAn amount of money.
- 
                
                    
                        payment: object
                    
                    
                     object 
                    
                
                
                    PaymentRef
                
                
                A payment received at order time.
Nested Schema : PaymentRef
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectA payment received at order time.
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                The object's superclass.
- 
                
                    
                        @referredType: string
                    
                    
                     
                    
                
                
                The object's type in the target system, if baseType and type need further disambiguation.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                A URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                The object's subclass.
- 
                
                    
                        href: string
                    
                    
                     (uri) 
                    
                
                
                The payment's href.
- 
                
                    
                        id(required): string
                    
                    
                     
                    
                
                
                The payment's ID.
- 
                
                    
                        name: string
                    
                    
                     
                    
                
                
                The payment's name.
Nested Schema : Attachment Ref Or Value
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Attachment Ref Or ValueAn attachment reference or value. The baseType, type, schemaLocation and referredType properties are related to the contained object, not the AttchmentRefOrValue.
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @referredType: string
                    
                    
                     
                    
                
                
                Title:Referred TypeThe object's type in the target system, if baseType and type need further disambiguation.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        attachmentType: string
                    
                    
                     
                    
                
                
                Title:Attachment TypeThe attachment reference's type. For example, video or picture.
- 
                
                    
                        content: string
                    
                    
                     
                    
                
                
                Title:Attachment ContentThe attachment's base64 encoded content.
- 
                
                    
                        description: string
                    
                    
                     
                    
                
                
                Title:Attachment DescriptionThe attachment's description.
- 
                
                    
                        href: string
                    
                    
                     
                    
                
                
                Title:Attachment HrefThe attachment reference's href.
- 
                
                    
                        id: string
                    
                    
                     
                    
                
                
                Title:Attachment IDThe attachment reference's ID.
- 
                
                    
                        mimeType: string
                    
                    
                     
                    
                
                
                Title:Mime TypeThe attachment's mime type. For example, a file extension like jpeg or mp4.
- 
                
                    
                        name: string
                    
                    
                     
                    
                
                
                Title:Attachment NameThe attachment's name.
- 
                
                    
                        size: object
                    
                    
                     object 
                    
                
                
                    Quantity
                
                
                Title:QuantityThe quantity of an object.
- 
                
                    
                        url: string
                    
                    
                     
                    
                
                
                Title:Attachment LinkA URL linking to the attachment content.
- 
                
                    
                        validFor: object
                    
                    
                     object 
                    
                
                
                    Time Period
                
                
                Title:Time PeriodA period of time. You can specify only endDateTime or both endDateTime and startDateTime.
Nested Schema : Quantity
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    QuantityThe quantity of an object.
    
    
    
    
        Show Source
        - 
                
                    
                        amount: number
                    
                    
                     (float) 
                    
                
                
                Title:AmountDefault Value:1A numeric value.
- 
                
                    
                        units: string
                    
                    
                     
                    
                
                
                Title:UnitsA unit. For example, MB or minutes.
Nested Schema : Account Balance
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Account BalanceA balance associated with an account.
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        amount(required): object
                    
                    
                     object 
                    
                
                
                    Money
                
                
                Title:MoneyAn amount of money.
- 
                
                    
                        balanceType(required): string
                    
                    
                     
                    
                
                
                Title:Balance TypeThe balance's type. For example, deposit, disputed, loyalty, or receivable.
- 
                
                    
                        validFor(required): object
                    
                    
                     object 
                    
                
                
                    Time Period
                
                
                Title:Time PeriodA period of time. You can specify only endDateTime or both endDateTime and startDateTime.
Nested Schema : Related Party Ref
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Related Party RefA reference to the party related to an object.
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @referredType: string
                    
                    
                     
                    
                
                
                Title:Referred TypeThe object's type in the target system, if baseType and type need further disambiguation.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        href: string
                    
                    
                     
                    
                
                
                Title:Related Party HrefThe related party's href.
- 
                
                    
                        id(required): string
                    
                    
                     
                    
                
                
                Title:Related Party IDThe related party's ID.
- 
                
                    
                        name: string
                    
                    
                     
                    
                
                
                Title:Related Party NameThe related party's name.
- 
                
                    
                        role: string
                    
                    
                     
                    
                
                
                Title:Related Party RoleThe related party's role.
Nested Schema : State Values
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    State ValuesA tax item.
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        taxAmount: object
                    
                    
                     object 
                    
                
                
                    Money
                
                
                Title:MoneyAn amount of money.
- 
                
                    
                        taxCategory: string
                    
                    
                     
                    
                
                
                Title:Tax CategoryThe tax item's category.
- 
                
                    
                        taxRate: number
                    
                    
                     (float) 
                    
                
                
                Title:Tax RateThe tax item's applied rate.
400 Response
Bad Request
                            
                            
                                Root Schema : Error
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    ErrorUsed when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        code(required): string
                    
                    
                     
                    
                
                
                Title:Error CodeAn error code.
- 
                
                    
                        message: string
                    
                    
                     
                    
                
                
                Title:Error MessageDetails and corrective actions related to the error.
- 
                
                    
                        reason(required): string
                    
                    
                     
                    
                
                
                Title:ReasonThe reason for the error.
- 
                
                    
                        referenceError: string
                    
                    
                     (uri) 
                    
                
                
                Title:Reference ErrorA URI to documentation describing the error.
- 
                
                    
                        status: string
                    
                    
                     
                    
                
                
                Title:Error StatusThe HTTP Error code extension.
401 Response
Unauthorized
                            
                            
                                Root Schema : Error
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    ErrorUsed when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        code(required): string
                    
                    
                     
                    
                
                
                Title:Error CodeAn error code.
- 
                
                    
                        message: string
                    
                    
                     
                    
                
                
                Title:Error MessageDetails and corrective actions related to the error.
- 
                
                    
                        reason(required): string
                    
                    
                     
                    
                
                
                Title:ReasonThe reason for the error.
- 
                
                    
                        referenceError: string
                    
                    
                     (uri) 
                    
                
                
                Title:Reference ErrorA URI to documentation describing the error.
- 
                
                    
                        status: string
                    
                    
                     
                    
                
                
                Title:Error StatusThe HTTP Error code extension.
403 Response
Forbidden
                            
                            
                                Root Schema : Error
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    ErrorUsed when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        code(required): string
                    
                    
                     
                    
                
                
                Title:Error CodeAn error code.
- 
                
                    
                        message: string
                    
                    
                     
                    
                
                
                Title:Error MessageDetails and corrective actions related to the error.
- 
                
                    
                        reason(required): string
                    
                    
                     
                    
                
                
                Title:ReasonThe reason for the error.
- 
                
                    
                        referenceError: string
                    
                    
                     (uri) 
                    
                
                
                Title:Reference ErrorA URI to documentation describing the error.
- 
                
                    
                        status: string
                    
                    
                     
                    
                
                
                Title:Error StatusThe HTTP Error code extension.
404 Response
Not Found
                            
                            
                                Root Schema : Error
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    ErrorUsed when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        code(required): string
                    
                    
                     
                    
                
                
                Title:Error CodeAn error code.
- 
                
                    
                        message: string
                    
                    
                     
                    
                
                
                Title:Error MessageDetails and corrective actions related to the error.
- 
                
                    
                        reason(required): string
                    
                    
                     
                    
                
                
                Title:ReasonThe reason for the error.
- 
                
                    
                        referenceError: string
                    
                    
                     (uri) 
                    
                
                
                Title:Reference ErrorA URI to documentation describing the error.
- 
                
                    
                        status: string
                    
                    
                     
                    
                
                
                Title:Error StatusThe HTTP Error code extension.
405 Response
Method Not Allowed
                            
                            
                                Root Schema : Error
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    ErrorUsed when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        code(required): string
                    
                    
                     
                    
                
                
                Title:Error CodeAn error code.
- 
                
                    
                        message: string
                    
                    
                     
                    
                
                
                Title:Error MessageDetails and corrective actions related to the error.
- 
                
                    
                        reason(required): string
                    
                    
                     
                    
                
                
                Title:ReasonThe reason for the error.
- 
                
                    
                        referenceError: string
                    
                    
                     (uri) 
                    
                
                
                Title:Reference ErrorA URI to documentation describing the error.
- 
                
                    
                        status: string
                    
                    
                     
                    
                
                
                Title:Error StatusThe HTTP Error code extension.
409 Response
Conflict
                            
                            
                                Root Schema : Error
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    ErrorUsed when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        code(required): string
                    
                    
                     
                    
                
                
                Title:Error CodeAn error code.
- 
                
                    
                        message: string
                    
                    
                     
                    
                
                
                Title:Error MessageDetails and corrective actions related to the error.
- 
                
                    
                        reason(required): string
                    
                    
                     
                    
                
                
                Title:ReasonThe reason for the error.
- 
                
                    
                        referenceError: string
                    
                    
                     (uri) 
                    
                
                
                Title:Reference ErrorA URI to documentation describing the error.
- 
                
                    
                        status: string
                    
                    
                     
                    
                
                
                Title:Error StatusThe HTTP Error code extension.
500 Response
Internal Server Error
                            
                            
                                Root Schema : Error
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    ErrorUsed when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
    
    
    
    
        Show Source
        - 
                
                    
                        @baseType: string
                    
                    
                     
                    
                
                
                Title:Base TypeThe object's superclass.
- 
                
                    
                        @schemaLocation: string
                    
                    
                     (uri) 
                    
                
                
                Title:Schema LocationA URI to a JSON schema file that defines additional attributes and relationships.
- 
                
                    
                        @type: string
                    
                    
                     
                    
                
                
                Title:TypeThe object's subclass.
- 
                
                    
                        code(required): string
                    
                    
                     
                    
                
                
                Title:Error CodeAn error code.
- 
                
                    
                        message: string
                    
                    
                     
                    
                
                
                Title:Error MessageDetails and corrective actions related to the error.
- 
                
                    
                        reason(required): string
                    
                    
                     
                    
                
                
                Title:ReasonThe reason for the error.
- 
                
                    
                        referenceError: string
                    
                    
                     (uri) 
                    
                
                
                Title:Reference ErrorA URI to documentation describing the error.
- 
                
                    
                        status: string
                    
                    
                     
                    
                
                
                Title:Error StatusThe HTTP Error code extension.
Examples
The following example shows how to update the state of a customer bill by submitting a PATCH request on the REST resource using cURL. For more information about cURL, see Use cURL.
The -d option specifies the file to attach as the request body. You can use either a bill ID POID, as in the example, or a bill number.
curl -X PATCH 'http://host:port/brm/customerBillManagement/version/customerBill/0.0.0.1+-bill+106861' -d @billUpdate.json
Example of Request Body
The following is an example of the contents of the billUpdate.json file sent as the request body. You can only use the PATCH method to update the bill state from InProgress to OnHold and from OnHold to InProgress.
{    
      "state": "OnHold",
      "@baseType": "CustomerBill",
       "@schemaLocation": null,
       "@type": "CustomerBill"
} 
 Example of Response Body
The following is an example of the response body in JSON format.
{
        "id": "0.0.0.1+-bill+106861",
        "href": "http://host:port/brm/customerBillManagement/version/customerBill/0.0.0.1+-bill+106861",
        "billDate": null,
        "billNo": "bill in progress",
        "category": "0",
        "lastUpdate": "2021-05-02T01:14:13-07:00",
        "nextBillDate": "2021-06-13T00:00:00-07:00",
        "paymentDueDate": "2021-08-01T01:05:29-07:00",
        "runType": "onCycle",
        "amountDue": {
            "unit": "EUR",
            "value": 90.0
        },
        "appliedPayment": null,
        "billDocument": null,
        "billingAccount": {
            "id": "0.0.0.1+-account+107117",
            "href": null,
            "name": "Tanya Levy",
            "@baseType": null,
            "@schemaLocation": null,
            "@type": null,
            "@referredType": "billingAccount"
        },
        "billingPeriod": {
            "endDateTime": null,
            "startDateTime": "2020-05-02T00:00:00-07:00"
        },
        "financialAccount": {
            "id": "0.0.0.1+-account+107117",
            "href": null,
            "name": "Tanya Levy",
            "accountBalance": null,
            "@baseType": null,
            "@schemaLocation": null,
            "@type": null,
            "@referredType": "financialAccount"
        },
        "paymentMethod": {
            "id": "0.0.0.1+-payinfo-invoice+109165",
            "href": null,
            "name": "4243324",
            "@baseType": null,
            "@schemaLocation": null,
            "@type": null,
            "@referredType": null
        },
        "relatedParty": null,
        "remainingAmount": {
            "unit": "EUR",
            "value": 90.0
        },
        "state": "OnHold",
        "taxExcludedAmount": {
            "unit": "EUR",
            "value": 86.0
        },
        "taxIncludedAmount": {
            "unit": "EUR",
            "value": 90.0
        },
        "taxItem": null,
        "@baseType": "CustomerBill",
        "@schemaLocation": null,
        "@type": "CustomerBill"
}